From f5af3df32e24fb57b0fc3bc627eb486daf98d870 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Sun, 10 Nov 2013 18:26:23 +0000 Subject: [PATCH] use gtk_combo_box_get_wrap_width(), we require GTK+ 2.6 now git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/choice.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/gtk/choice.cpp b/src/gtk/choice.cpp index 1d91fd0132..c30e031087 100644 --- a/src/gtk/choice.cpp +++ b/src/gtk/choice.cpp @@ -305,10 +305,7 @@ void wxChoice::SetColumns(int n) int wxChoice::GetColumns() const { - // gtk_combo_box_get_wrap_width() was added in gtk 2.6 - gint intval; - g_object_get(G_OBJECT(m_widget), "wrap-width", &intval, NULL); - return intval; + return gtk_combo_box_get_wrap_width(GTK_COMBO_BOX(m_widget)); } void wxChoice::GTKDisableEvents()