lookup_widget()

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

 



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,

_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux