lookup_widget()



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]