I'm writing a plugin that's modifying an existing UI. One thing I want to do is change what an existing menu item does.
This is all using the Gtk library.
The menu item (a GtkItem
) is created from a GtkItemFactoryEntry
(which is out of my control), and has its current behaviour defined by the callback in the GtkItemFactoryEntry
.
I can get handle on the menu item using gtk_item_factory_get_widget()
and attach further actions to the menu item using gtk_signal_connect()
, but I can't seem to disconnect the original callback using gtk_signal_disconnect()
or gtk_signal_disconnect_by_func()
.
Is there any way I can remove or replace the original callback?