Web help and a question

John Coppens <[email protected]>
Newsgroups gmane.comp.gnome.glade.devel
Message-ID <[email protected]>
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>
_______________________________________________
Glade-devel maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/glade-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.