[Glade-users] Problem with Glade 3.5.2
- From: jmouriz at gmail.com (Juan Manuel Mouriz)
- Subject: [Glade-users] Problem with Glade 3.5.2
- Date: Sat, 19 Jul 2008 14:21:37 -0300
?Your sample work for me because the GTK 2.13 handle requires tag. ?The
fix-interface.pl avoid this too (TO BE REMOVED).
El s?b, 19-07-2008 a las 19:08 +0200, fred escribi?:
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)
With
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);
gtk_main();
return 0;
}
Here "test-gtkbuilder.glade" I used :
<?xml version="1.0"?>
<interface>
<requires lib="gtk+" version="2.12"/>
<object class="GtkWindow" id="window1">
<child>
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="label" translatable="yes">label</property>
</object>
</child>
</object>
</interface>
Regards,
Fred
_______________________________________________
Glade-users maillist - Glade-users at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-users
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 ?
aborting...
Abandon
Which mean : The "requires" tag is not supported.
_______________________________________________
Glade-users maillist - Glade-users at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-users
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]