GNOME Bugzilla – Bug 602443
Can't use .glade with GtkListStore, gint64/guint64 and design-time data
Last modified: 2014-08-21 18:22:27 UTC
Overview: Adding one or more rows of data at design time to GtkListStore with one or more columns of type gint64 or guint64 results in "Gtk-CRITICAL **: gtk_widget_show: assertion `GTK_IS_WIDGET (widget)' failed" when trying to use .glade file in my application. Steps to Reproduce: start Glade, create a new project (everything left by default: GtkBuilder, names unique within the project, GTK+ 2.16); create a ListStore model, add a column of type gint64 or guint64 and a row of data; create a window; save the .glade file, close Glade; compile and run a simple app which will use the file you just saved: #include <gtk/gtk.h> int main(int argc, char *argv[]) { GtkBuilder *builder; GtkWidget *window; gtk_init (&argc, &argv); builder = gtk_builder_new (); gtk_builder_add_from_file (builder, "example.glade", NULL); window = GTK_WIDGET (gtk_builder_get_object (builder, "window1")); g_object_unref (G_OBJECT (builder)); gtk_widget_show (window); gtk_main(); return(0); } Actual Results: (test:5918): Gtk-CRITICAL **: gtk_widget_show: assertion `GTK_IS_WIDGET (widget)' failed. Expected Results: An empty window should appear. Glade 3.6.7, GTK+ 2.18.3 on Ubuntu 9.10
Sounds like a GtkBuilder/GtkListStore problem, not sure if it's resolved by now, moving over to GTK+...