After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 574001 - connect-proxy signal can't be used with GtkBuilder
connect-proxy signal can't be used with GtkBuilder
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Class: GtkBuilder
2.15.x
Other All
: Normal normal
: ---
Assigned To: GtkBuilder maintainers
GtkBuilder maintainers
Depends on:
Blocks: 484142
 
 
Reported: 2009-03-03 23:28 UTC by Robin Stocker
Modified: 2018-02-10 03:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
connect-proxy test case (2.03 KB, text/x-csrc)
2009-03-03 23:33 UTC, Robin Stocker
Details

Description Robin Stocker 2009-03-03 23:28:20 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?
Comment 1 Robin Stocker 2009-03-03 23:33:00 UTC
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
Comment 2 Matthias Clasen 2018-02-10 03:25:18 UTC
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.