[Glade-users] lookup_widget

On Thu, 2006-07-06 at 13:11 -0700, Denes Matetelki wrote:

I don't understand how lookup_widget really works.

This code works in some callback funtions, in others, it doesn't.
What does it expect to the first argument?

GtkWidget *my_entry;
my_entry = lookup_widget(GTK_WIDGET(button), "entry_bluetooth");

lookup_widget only works within a single dialog. The first argument must
be one widget in the dialog, and the second argument is the name of
another widget within the same dialog.

(I couldn't make it work globally, as there may be multiple instances of
each dialog so it wouldn't know which instance you wanted.)

You need to keep track of all the windows/dialogs yourself.


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