GNOME Bugzilla – Bug 737948
"Preview snapshot" produces error
Last modified: 2018-03-26 15:42:11 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.
*** This bug has been marked as a duplicate of bug 733566 ***
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.
-- 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.