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 748234 - Useless "Gtk-WARNING **: No object called:" warning message showing when calling Gtk.Builder().add_from_file("<file.xml>")
Useless "Gtk-WARNING **: No object called:" warning message showing when call...
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Class: GtkBuilder
3.10.x
Other Linux
: Normal minor
: ---
Assigned To: GtkBuilder maintainers
GtkBuilder maintainers
Depends on:
Blocks:
 
 
Reported: 2015-04-21 08:29 UTC by Hans Deragon
Modified: 2015-04-30 17:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Glade file for which the "Gtk-WARNING **: No object called:" is generated for. Autopoweroff GUI. (83.78 KB, text/plain)
2015-04-21 08:29 UTC, Hans Deragon
Details

Description Hans Deragon 2015-04-21 08:29:34 UTC
Created attachment 302052 [details]
Glade file for which the "Gtk-WARNING **: No object called:" is generated for.  Autopoweroff GUI.

"Gtk-WARNING **: No object called:" warning message shows up when starting my application, when it is calling Gtk.Builder().add_from_file("<file.xml").

My application is Autopoweroff "http://autopoweroff.sourceforge.net", written in Python.  I am running it under GTK 3.10.8 (Ubuntu 14.04 LTS Trusty Thar).

Here is the actual output of my application when started.  Only "(autopoweroff.in:5991): Gtk-WARNING **: No object called:" line is generated by GTK, the others are generated by my application.

$ ./autopoweroff.in
Using GTK 3.10.8
(autopoweroff.in:5991): Gtk-WARNING **: No object called: 
Reading configuration file:  ../etc/autopoweroff/autopoweroff.conf
[...deleted lines...]

Probably my glade file has a problem, but this bug report is not about that.  It is about the fact that the warning is totally useless.  It does not provide enough information for me to hunt down the actual problem.  Please remove the warning or improve it.

Still, I attach my glade file.
Comment 1 Hans Deragon 2015-04-30 17:28:56 UTC
May I inquire how this ticket has been fixed?  Thanks for the quick intervention.
Comment 2 Matthias Clasen 2015-04-30 17:58:48 UTC
The message now includes the filename and line number where the offending reference occurred. Here:

https://git.gnome.org/browse/gtk+/commit/?id=d58500b3180492cc9396fdf8dcbf61b29f7f7464