GNOME Bugzilla – Bug 574001
connect-proxy signal can't be used with GtkBuilder
Last modified: 2018-02-10 03:25:18 UTC
The connect-proxy signal of GtkUIManager can be used for implementing the "show menu item tooltip in status bar" feature. When a proxy is connected to an action, the select/deselect signals can be connected to functions showing/hiding the tooltip. This is much easier than adding select/deselect signal handlers to each and every menu item. That works when one manually constructs the UI with code and has the connect-proxy signal of GtkUIManager connected beforehand. But with GtkBuilder, connect-proxy can't be used as the actions and proxies are connected as soon as gtk_builder_add_from_* is called, and at that time the connect-proxy signal is not yet active. So, is there a way to use the connect-proxy signal of GtkUIManager with GtkBuilder? And if not, is it a bug or is there another way?
Created attachment 129981 [details] connect-proxy test case This is a minimal test case for using the connect-proxy signal with a GtkBuilder UI definition. Compile it like this: gcc -Wall -Wl,--export-dynamic `pkg-config --cflags --libs gtk+-2.0` -o connect-proxy-test connect-proxy-test.c
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.