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 737948 - "Preview snapshot" produces error
"Preview snapshot" produces error
Status: RESOLVED OBSOLETE
Product: glade
Classification: Applications
Component: general
3.16.x
Other Linux
: Normal normal
: ---
Assigned To: Glade 3 Maintainers
Glade 3 Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-10-05 20:07 UTC by Tobias Schönberg
Modified: 2018-03-26 15:42 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tobias Schönberg 2014-10-05 20:07:18 UTC
Trying to test a new layout. Pressing "Preview Snapshot" does nothing and print this in the console:


GladeUI-Message: 1 missing displayable value for GtkCellRendererAccel::accel-mode

GladeUI-Message: Glade needs artwork; a default icon will be used for the following classes:
	GtkApplicationWindow	needs an icon named 'widget-gtk-applicationwindow'

GladeUI-Message: 1 missing displayable value for GtkCellRendererAccel::accel-mode

GladeUI-Message: Glade needs artwork; a default icon will be used for the following classes:
	GtkApplicationWindow	needs an icon named 'widget-gtk-applicationwindow'
**
Gtk:ERROR:/build/buildd/gtk+3.0-3.10.8/./gtk/gtknotebook.c:1237:gtk_notebook_buildable_add_child: assertion failed: (page != NULL)


Using Ubuntu 14.04 64bit, with Glade 3.16.1.
Comment 1 Tristan Van Berkom 2014-10-05 23:52:40 UTC

*** This bug has been marked as a duplicate of bug 733566 ***
Comment 2 Tristan Van Berkom 2014-10-06 00:03:24 UTC
Marked this duplicate a little too quick, it might be a duplicate, bug 733566 is not so clear so that might be a separate issue, so reopening this one as it highlights the problem more clearly (and isolated).

Some clarifications about this well known issue are in order:


 A.) The console messages / errors which come from the GtkBuilder parse
     performed by the previewer need to be collected and shown in a dialog.

     One of the main purposes of the previewer is to run a real life
     GtkBuilder parse and see if it chokes on the project data.

 B.) For a GtkNotebook to be parsable, it must have tab labels AND content
     widgets (read: *not* placeholders, real widgets in the pages).

     If the notebook is missing a tab label or content widget for any
     of it's pages, it will not load in GtkBuilder and will produce this
     error.

     Glade should include some error checking mechanism, perhaps at project save
     time, to let widget adaptors run some widget class specific code to check
     for these forseeable errors and warn the user about this invalid project
     state.


The tricky thing here is that Glade needs to let you load and save a project
that is not necessarily in a functional state - you need to be allowed to save
that notebook before running off to lunch, even if you have not taken the time
yet to fill your pages with content.
Comment 3 GNOME Infrastructure Team 2018-03-26 15:42:11 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/181.