[Glade-users] Problem with Glade 3.5.2

Juan Manuel Mouriz a ?crit :
The GtkBuilder is not fully implemented in glade yet, but your sample
must be work without problems.

Replace the sentence:

?gtk_builder_add_from_file(builder, "test-gtkbuilder.glade", NULL)


GError *error = NULL;
??gtk_builder_add_from_file(builder, "test-gtkbuilder.glade", NULL)

if (error)
  g_error ("%s\n", error->message)

To see if any error. On my Linux, your sample work well!

El s?b, 19-07-2008 a las 17:40 +0200, fred238 escribi?:
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>



Glade-users maillist  -  Glade-users at lists.ximian.com

Thanks for the reply,

I get back the error argument and while i run the app, I got :

** ERROR **: Balise non g?r?e : ? requires ?


Which mean : The "requires" tag is not supported.

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