X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5f3565a2fb3d678b03cf8547f37e56b1efe786f5..7e4fb3b8168f4f2dbf2f8a246d3e094a8ccba194:/src/gtk1/choice.cpp?ds=inline diff --git a/src/gtk1/choice.cpp b/src/gtk1/choice.cpp index 58aff17892..59d5402c12 100644 --- a/src/gtk1/choice.cpp +++ b/src/gtk1/choice.cpp @@ -61,7 +61,7 @@ static void gtk_choice_clicked_callback( GtkWidget *WXUNUSED(widget), wxChoice * GtkBin *bin = GTK_BIN( child->data ); if (!bin->child) { - selection = count: + selection = count; break; } child = child->next; @@ -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 );