name -> widget func?



Given a text name and the TopLevel widget, I'd like to retrieve the proper
child GtkWidget*.  What function does that?

Example: window1 has a child widget button1.  
Given: toplevel = (GtkWidget*)window1; name = (char*)"button1";
       myButton = (GtkWidget*) GetWidgetByName(name, toplevel);
Result:
       myButton would point to button1

This should probably be added to the FAQ.

Thanks,
Nate





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