GNOME Bugzilla – Bug 656565
Signalify (already existing) GtkMenuShell.insert()
Last modified: 2013-01-28 23:20:45 UTC
We have signal emissions for the equivalent function on GtkContainer so it seems quite consistent that we should have the same here...
Created attachment 193863 [details] [review] Signalify (already existing) GtkMenuShell.insert() gtk_menu_shell_insert() is a virtual function that was being directly invoked from the class vtable. Turn it into a proper signal and emit it in the usual way.
The following fix has been pushed: 05aeaee Signalify (already existing) GtkMenuShell.insert()
Created attachment 194701 [details] [review] Signalify (already existing) GtkMenuShell.insert() gtk_menu_shell_insert() is a virtual function that was being directly invoked from the class vtable. Turn it into a proper signal and emit it in the usual way.
*** Bug 553204 has been marked as a duplicate of this bug. ***
Is it possible to get this applied to GTK+ 2 as well?
Can you backport the patch, post it here and test it (perhaps compiling a gtk package for your system and running a bunch of apps against it to make sure everything is OK)?
Created attachment 234676 [details] [review] GTK 2.24 backport of 'Signalify (already existing) GtkMenuShell.insert()' I've tested this with Inkscape, Oregano and the GIMP, as well as in conjunction with a GTK+ module that makes use of the insert signal. Everything worked as expected.
Created attachment 234678 [details] [review] Fix the Since: on the GTK 2 insert signal patch Fix the Since: version.