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 757242 - Glade should warn/inform the user when loading an unsupported hierarchy
Glade should warn/inform the user when loading an unsupported hierarchy
Status: RESOLVED OBSOLETE
Product: glade
Classification: Applications
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: Glade 3 Maintainers
Glade 3 Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-10-28 11:12 UTC by Bastien Nocera
Modified: 2018-03-26 15:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gnome-mouse-properties.ui (37.94 KB, text/plain)
2015-10-28 11:12 UTC, Bastien Nocera
Details

Description Bastien Nocera 2015-10-28 11:12:02 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
Comment 1 Tristan Van Berkom 2016-01-28 16:08:26 UTC
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.
Comment 2 Bastien Nocera 2016-02-01 16:15:28 UTC
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.
Comment 3 Tristan Van Berkom 2016-02-01 18:33:57 UTC
(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.
Comment 4 GNOME Infrastructure Team 2018-03-26 15:49:45 UTC
-- 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.