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 602443 - Can't use .glade with GtkListStore, gint64/guint64 and design-time data
Can't use .glade with GtkListStore, gint64/guint64 and design-time data
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Class: GtkBuilder
2.18.x
Other Linux
: Normal normal
: ---
Assigned To: GtkBuilder maintainers
GtkBuilder maintainers
Depends on:
Blocks:
 
 
Reported: 2009-11-19 20:05 UTC by rocket.svm
Modified: 2014-08-21 18:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description rocket.svm 2009-11-19 20:05:38 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
Comment 1 Tristan Van Berkom 2011-01-09 17:44:06 UTC
Sounds like a GtkBuilder/GtkListStore problem, not sure if it's
resolved by now, moving over to GTK+...