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
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user