Replace the callback for a GtkItem created from a GtkItemFactoryEntry
Posted
by rampion
on Stack Overflow
See other posts from Stack Overflow
or by rampion
Published on 2010-03-25T19:10:58Z
Indexed on
2010/03/25
19:13 UTC
Read the original article
Hit count: 156
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?
© Stack Overflow or respective owner