X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a73ae836dff339ba626133a29fa2b0b87d99ca3c..7708a267207473783f88cae047b78adaecf83675:/src/gtk/combobox.cpp diff --git a/src/gtk/combobox.cpp b/src/gtk/combobox.cpp index 80c4c23856..1a4e40ce0f 100644 --- a/src/gtk/combobox.cpp +++ b/src/gtk/combobox.cpp @@ -201,29 +201,6 @@ gtkcombobox_changed_callback( GtkWidget *WXUNUSED(widget), wxComboBox *combo ) } } -extern "C" { -static -void gtkcombobox_size_callback( GtkWidget *widget, - GtkAllocation *alloc, - wxWindow *win ) -{ - if (win->GetParent()->m_wxwindow) return; - - // we are probably a wxToolBar - - wxSize size = win->GetEffectiveMinSize(); - if (size.y != alloc->height) - { - GtkAllocation alloc2; - alloc2.x = alloc->x; - alloc2.y = (alloc->height - size.y + 3) / 2; - alloc2.width = alloc->width; - alloc2.height = size.y; - gtk_widget_size_allocate( widget, &alloc2 ); - } -} -} - #endif //----------------------------------------------------------------------------- @@ -274,7 +251,6 @@ bool wxComboBox::Create( wxWindow *parent, wxWindowID id, const wxString& value, { m_ignoreNextUpdate = false; m_needParent = true; - m_acceptsFocus = true; m_prevSelection = 0; if (!PreCreation( parent, pos, size ) || @@ -372,10 +348,7 @@ bool wxComboBox::Create( wxWindow *parent, wxWindowID id, const wxString& value, g_signal_connect_after (m_widget, "changed", G_CALLBACK (gtkcombobox_changed_callback), this); - - // Connect to in order to correct size_allocate events - g_signal_connect_after (m_widget, "size_allocate", - G_CALLBACK (gtkcombobox_size_callback), this); + } else #endif