how to get widget
Hi
I try to write my first program in GTK+ and I have problem with callbacks.
I generated GUI (one label "label1" and one button "guzik") with Glade and in callbacks.c try to write my own code.
When I type:
void
on_guzik_naciskany_leave (GtkButton *button,
gpointer user_data)
{
label12 = lookup_widget(GTK_WIDGET(button), "label1");
gtk_label_set_text(GTK_LABEL(label12),"buu");
}
I change button text but I want to change text on label (text area).
Is somebody know how to do it?
Thanks
|