GNOME Bugzilla – Bug 748234
Useless "Gtk-WARNING **: No object called:" warning message showing when calling Gtk.Builder().add_from_file("<file.xml>")
Last modified: 2015-04-30 17:58:48 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.
May I inquire how this ticket has been fixed? Thanks for the quick intervention.
The message now includes the filename and line number where the offending reference occurred. Here: https://git.gnome.org/browse/gtk+/commit/?id=d58500b3180492cc9396fdf8dcbf61b29f7f7464