Re: help for a newbie
- From: "Rikke D. Giles" <rgiles centurytel net>
- To: gtk-app-devel-list gnome org
- Subject: Re: help for a newbie
- Date: Sat, 17 Jan 2004 02:00:21 -0800
On 2004.01.17 01:39, christophe Meyer wrote:
<snip>
GtkWidget * station = lookup_widget(GTK_WIDGET(button), "entry2");
GtkWidget * label = lookup_widget(GTK_WIDGET(button), "label39");
<snip>
The problem is that when i click the button, nothing appears in the
"label39" label, and i have this message:
WARNING **: Widget not found: label39
You need to keep a reference to the original window around. Make it
static in your callbacks file, or even make it global. lookup_widget,
as you suspected, only works for the window the calling widget is in,
in this case the dialog.
So when you load up the original window, set a static or global pointer
to the window, then you can use lookup_widget with that pointer, and
get to your label.
Cheers,
Rikke
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]