GNOME Bugzilla – Bug 624687
switch-page bug when activated from menu
Last modified: 2010-07-23 11:54:32 UTC
gtk_notebook_menu_switch_page is using the GtkNotebookPage as argument to the switch-page signal, instead of the real widget. Result: critical warning Also, the signal itself seems wrong: it uses a VOID:POINTER,INT marshal but passes GTK_TYPE_WIDGET as the POINTER type... should use a VOID:OBJECT,INT marshal.
Created attachment 166145 [details] [review] Correct marshaller for switch-page and adjust emission from menu Clearly my fault, thanks a lot for the quick report. The above patch corrects the marshaller to OBJECT_UINT and emits the signal correctly for the context menu.
*** Bug 625101 has been marked as a duplicate of this bug. ***
Review of attachment 166145 [details] [review]: the patch is clearly correct.
Committed to master.
Committed the menu item change to gtk-2-22 as well, it took a bit longer to re-build and test.