How to get a widget from its parent of parent(...) by name?

2010-06-09 Thread Tao Wang
Hi, I'm migrating a project from GnomeDruid/Libglade to GtkAssistant/GtkBuilder. I got a problem of replacing 'glade_xml_get_wiget()'. The ui structure is like following: GtkAssistant assistant \ GtkVBox vbox1 \ GtkRadioButton button1 | GtkRadioButton button2 In

Re: How to get a widget from its parent of parent(...) by name?

2010-06-09 Thread Florian Müllner
El mié, 09-06-2010 a las 22:02 +1000, Tao Wang escribió: How can I do this if I migrate to GtkBuilder? There is no similar function of 'glade_xml_get_widget()'. gtk_builder_get_object() is what you want :) ___ gtk-app-devel-list mailing list

Re: How to get a widget from its parent of parent(...) by name?

2010-06-09 Thread Tao Wang
Thank you, I'm sorry for that I didn't explain the problem clearer. What I meant is that there is no similar function of 'glade_get_widget_tree(widget)'. At the context where should call gtk_builder_get_object(), there is no 'GtkBuilder* builder' available. In the previous code, we can call

Re: How to get a widget from its parent of parent(...) by name?

2010-06-09 Thread Tadej Borovšak
Hello. Thank you, I'm sorry for that I didn't explain the problem clearer. What I meant is that there is no similar function of 'glade_get_widget_tree(widget)'. At the context where should call gtk_builder_get_object(), there is no 'GtkBuilder* builder' available. In the previous code, we

Re: How to get a widget from its parent of parent(...) by name?

2010-06-09 Thread Nicola Fontana
Il giorno Wed, 9 Jun 2010 14:54:07 +0200 Tadej Borovšak tadeb...@gmail.com ha scritto: Hello. Thank you, I'm sorry for that I didn't explain the problem clearer. What I meant is that there is no similar function of 'glade_get_widget_tree(widget)'. At the context where should call

Re: How to get a widget from its parent of parent(...) by name?

2010-06-09 Thread Tao Wang
Thank you very much, I got the ideas. Both of them works for me. I prefer the 'g_object_set_data(G_OBJECT(assistant), builder, builder);' way, which is convenient for my code. On Thu, Jun 10, 2010 at 12:08 AM, Nicola Fontana n...@entidi.it wrote: Il giorno Wed, 9 Jun 2010 14:54:07 +0200 Tadej