_conncect_after() should be used for controls emitting
command events so as to not confuse GTK+ if the user
intercepts them too early.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -569,7 +569,7 @@ int wxChoice::GtkAddHelper(GtkWidget *menu, int pos, const wxString& item)
|
||||
// it has to change. Adapted from Matt Ownby.
|
||||
InvalidateBestSize();
|
||||
|
||||
gtk_signal_connect( GTK_OBJECT( menu_item ), "activate",
|
||||
gtk_signal_connect_after( GTK_OBJECT( menu_item ), "activate",
|
||||
GTK_SIGNAL_FUNC(gtk_choice_clicked_callback), (gpointer*)this );
|
||||
|
||||
gtk_widget_show( menu_item );
|
||||
|
||||
Reference in New Issue
Block a user