[Glade-users] lookup_widget
- From: damon at karuna.uklinux.net (Damon Chaplin)
- Subject: [Glade-users] lookup_widget
- Date: Fri, 07 Jul 2006 11:56:20 +0100
On Thu, 2006-07-06 at 13:11 -0700, Denes Matetelki wrote:
Hi!
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.
Damon
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]