lookup_widget()
- From: halil agin <e116432 metu edu tr>
- To: gtk-list gnome org
- Cc: e116432 metu edu tr
- Subject: lookup_widget()
- Date: Tue, 11 Nov 2003 16:18:26 +0200
hi,
i have a problem with lookup_widget() and my frames... here is my
widget's structure
window1
|
|--windowFixed
| |- okB
| | - notebook
| | - screenFrame
| | - screenFixed
| | - comboBox
|
i want to reach from my okB's clicked callback to my comboBox. İ have
to read the entry of
comboBox. Actually i find a answer but i did not like it...
here it is:
GtkWidget* widget1 = lookup_widget(GTK_WIDGET(button),
"windowFixed");
GtkWidget* notebook = lookup_widget(GTK_WIDGET(widget1),
"notebook1");
GtkWidget* screenFrame = lookup_widget(GTK_WIDGET(notebook),
"screenFrame");
GtkWidget* screenFixed =
lookup_widget(GTK_WIDGET(screenFrame), "screenFixed");
GtkWidget* colorDepthFrame =
lookup_widget(GTK_WIDGET(screenFixed), "colorDepthFrame");
GtkWidget* colorDepthCB =
lookup_widget(GTK_WIDGET(colorDepthFrame), "colorDepthCB");
I start from window and get my combobox. But it is to long way to get
an entry,,,
is there an easy way to do that?
regards,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]