GNOME Bugzilla – Bug 757242
Glade should warn/inform the user when loading an unsupported hierarchy
Last modified: 2018-03-26 15:49:45 UTC
Created attachment 314303 [details] gnome-mouse-properties.ui When loading the attached .ui file, I can see the UI, but none of the widgets show up in the widget tree, and clicking on any widget throws: (glade:21735): GladeUI-CRITICAL **: glade_project_selection_set: assertion 'glade_project_has_object (project, object)' failed
This file could not have been created with Glade. The file works quite fine after inserting a GtkViewport in the scrolled window before as a parent of the GtkBox which is, in this file directly to the scrolled window. Glade cannot really handle a case where gtk_container_add() results in a widget who's parent is not the container you added it to.
Can't it have a better error message for this? It would certainly help when GtkBuilder can handle those types of UI files and glade can't.
(In reply to Bastien Nocera from comment #2) > Can't it have a better error message for this? It would certainly help when > GtkBuilder can handle those types of UI files and glade can't. Certainly you're right. Sorry to close it that quickly whilst running through the list, I updated the bug title to reflect that more accurately.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glade/issues/217.