[Glade-devel] Web help and a question
- From: john at jcoppens.com (John Coppens)
- Subject: [Glade-devel] Web help and a question
- Date: Sat, 7 Feb 2009 12:39:19 -0200
Hello all,
If so desired, I offer to update the Glade webpage as it is, to be at
least up-to-date with the versions that are coming out. Then we can try to
decide where we want to go. I don't have the time to do heroics, but it's
a pity the page doesn't reflect what's happening.
Then a small problem: How can I determine the 'state' of GtkBuilder
support in Glade-3? Is Builder support sufficient to be used, or should I
still use libglade and convert?
I saved a project in that format, but loading it gives:
(farma3:15536): Gtk-CRITICAL **: gtk_widget_show: assertion
`GTK_IS_WIDGET (widget)' failed
main.c:
GtkBuilder *builder;
GtkWidget *LoginWindow;
gtk_set_locale();
gtk_init(&argc, &argv);
builder = gtk_builder_new();
gtk_builder_add_from_file(builder, "farma3.glade", NULL);
LoginWindow = GTK_WIDGET(gtk_builder_get_object(builder, "LoginWindow"));
gtk_builder_connect_signals(builder, NULL);
g_object_unref(G_OBJECT(builder));
gtk_widget_show(LoginWindow);
gtk_main();
return 0;
In the xml file, LoginWindow appears as a GtkWindow:
<object class="GtkWindow" id="LoginWindow">
<property name="title" translatable="yes">Farma login</property>
<property name="modal">True</property>
<property name="window_position">center-always</property>
<property name="type_hint">dialog</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]