[Glade-users] Problem with Glade 3.5.2
- From: fred238 at free.fr (fred238)
- Subject: [Glade-users] Problem with Glade 3.5.2
- Date: Sat, 19 Jul 2008 17:40:56 +0200
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]