[Glade-users] Newbe problem with tutorial example


A url reference is:

You've given me a clue that the tutorial isn't worth s__t which is very
helpful. :-) The gtk-builder-convert bothered me but remember, I'm new to

This tutorial is really nice actually, but has been a bit outdated
since Glade3-3.6 was released. Glade3-3.4 series that this tutorial
uses saved in libglade format and in order to use this file with
GtkBuilder, one needs to convert it using gtk-builder-convert into
GtkBuilder project. Micah did a really good job back then steering
people away from deprecated libglade towards GtkBuilder and it's
really not fair to call his tutorial not being worth s__t.

?<widget class="GtkWindow" id="window1">
? ?window = GTK_WIDGET (gtk_builder_get_object (builder, "window"));

As Tristan said, you have a name mismatch between interface file and C
code. Your main window is named "window1" in XML file and "window" in
C code. You probably missed a step in tutorial where main window is
renamed from default "window1" to "window".


Tadej Borov?ak
tadeboro at gmail.com
tadej.borovsak at gmail.com

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