X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4262848117c2844a0e1f82638f1bad36150fbe05..3217f79df1fec0e7852b299a42776c99d74e95db:/src/gtk/combobox.cpp diff --git a/src/gtk/combobox.cpp b/src/gtk/combobox.cpp index e5a8a75d6d..1743505cac 100644 --- a/src/gtk/combobox.cpp +++ b/src/gtk/combobox.cpp @@ -222,7 +222,7 @@ void wxComboBox::OnChar( wxKeyEvent &event ) event.Skip(); } -void wxComboBox::DisableEvents() +void wxComboBox::GTKDisableEvents() { if ( GetEntry() ) g_signal_handlers_block_by_func(GTK_BIN(m_widget)->child, @@ -234,7 +234,7 @@ void wxComboBox::DisableEvents() (gpointer)gtkcombobox_popupshown_callback, this); } -void wxComboBox::EnableEvents() +void wxComboBox::GTKEnableEvents() { if ( GetEntry() ) g_signal_handlers_unblock_by_func(GTK_BIN(m_widget)->child, @@ -251,10 +251,8 @@ GtkWidget* wxComboBox::GetConnectWidget() return GTK_WIDGET( GetEntry() ); } -GdkWindow *wxComboBox::GTKGetWindow(wxArrayGdkWindows& windows) const +GdkWindow* wxComboBox::GTKGetWindow(wxArrayGdkWindows& /* windows */) const { - wxUnusedVar(windows); - return GetEntry()->text_area; } @@ -339,4 +337,13 @@ void wxComboBox::OnUpdateSelectAll(wxUpdateUIEvent& event) event.Enable(!wxTextEntry::IsEmpty()); } +void wxComboBox::Popup() +{ + gtk_combo_box_popup( GTK_COMBO_BOX(m_widget) ); +} + +void wxComboBox::Dismiss() +{ + gtk_combo_box_popdown( GTK_COMBO_BOX(m_widget) ); +} #endif // wxUSE_COMBOBOX