Richard wrote:
>
> What is the proper Glade method of getting non-callback related
> GtkWidget pointers into callbacks.c (or main.c)? Example: Set a button
> and callback using Glade ... you get an empty on_button1_clicked()
> definition in callbacks.c. Now, if I want on_button1_clicked()
> to change the text in a couple of GtkLabels, also created in
> Glade, I'll need the labels' GtkWidget pointers available in
> callbacks.c. The problem is that I can't find any header file
> with all of the GtkWidget pointers. (The only place I can
> find the GtkLabel pointers is in interfaces.c in the
> create_window1(). What is the trick?
Glade outputs a lookup_widget() function to help here.
Pass it any widget in a window/dialog, and the name of the widget you want,
e.g.
GtkWidget *label1;
label1 = lookup_widget (GTK_WIDGET (button1), "label1");
Damon
+---------------------------------------------------------------------+
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the line "unsubscribe glade-devel" in the body of the message.