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 149077 - Paths in gtk_ui_manager_add_ui fail with a leading slash
Paths in gtk_ui_manager_add_ui fail with a leading slash
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Class: UIManager / Actions
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2004-08-02 16:18 UTC by David Malcolm
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description David Malcolm 2004-08-02 16:18:54 UTC
Parts of my UI are built at runtime, so I use gtk_ui_manager_add_ui to
supplement the bits build from an XML description.

This didn't work for me, until I read this:
http://mail.gnome.org/archives/gtk-app-devel-list/2004-July/msg00263.html

It appears that the UI path must _NOT_ have a leading slash, or the function
fails.  It works if you leave off the leading slash (this was using GTK 2.4.0, IIRC)
Comment 1 Matthias Clasen 2004-08-03 23:42:35 UTC
David,

it appears that for add_ui(), either ui/toolbar/... or /toolbar/... will work,
while for get_widget(), /ui/toolbar/... works as well. That is a bit unfortunate,
and it would probably be best to make sure that /ui/toolbar works for add_ui() as 
well, and treat the fact that ui/toolbar works as an accident...