[Glade-users] Problem with Glade 3.5.2

Hi all,

I just tried Glade 3.5.2 and I got some problems :
While i run the program, I get : (sample:15788): Gtk-CRITICAL **: gtk_widget_show_all: assertion 
`GTK_IS_WIDGET (widget)' failed
Is the gtkbuilder format is fully implemented in this version ?

Here "sample.c" I used :

#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, "test-gtkbuilder.glade", NULL);
      window = GTK_WIDGET (gtk_builder_get_object (builder, "window1"));
   gtk_widget_show_all (window);
   gtk_builder_connect_signals (builder, NULL);

   return 0;

Here "test-gtkbuilder.glade" I used :

<?xml version="1.0"?>
 <requires lib="gtk+" version="2.12"/>
 <object class="GtkWindow" id="window1">
     <object class="GtkLabel" id="label1">
       <property name="visible">True</property>
       <property name="label" translatable="yes">label</property>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]