GNOME Bugzilla – Bug 622260
GtkRadioMenuItem does not emit 'notify::active' on activate
Last modified: 2018-02-10 03:36:50 UTC
Created attachment 164198 [details] [review] Refactoring of gtk_radio_menu_item_activate() As GtkRadioMenuItem is a subclass of GtkCheckMenuItem it should emit a notify::active signal when gtk_menu_item_activate() is invoked on it. Here is a fix, split into two patches: the first refactors gtk_radio_menu_item_activate() and the second adds the g_object_notify() call. Note: the fix modifes the original code slightly by making the gtk_widget_queue_draw call conditional on whether the active state was in fact changed. best regards, Richard.
Created attachment 164199 [details] [review] Fix of refactored gtk_radio_menu_item_activate()
Created attachment 164200 [details] Testcase Compiled with gcc $ testcase.c `pkg-config --cflags --libs gtk+-2.0` -o testcase
We're moving to gitlab! As part of this move, we are closing bugs that haven't seen activity in more than 5 years. If this issue is still imporant to you and still relevant with GTK+ 3.22 or master, please consider creating a gitlab issue for it.