Re: How to get a widget from its parent of parent(...) by name?
- From: Tao Wang <dancefire gmail com>
- To: Florian MÃllner <florian muellner gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: How to get a widget from its parent of parent(...) by name?
- Date: Wed, 9 Jun 2010 22:27:46 +1000
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 'glade_get_widget_tree(widget)' to get the
GladeXml object of the given 'widget'. However, I don't know how to do it in
GtkBuilder?
If I can get the GtkBuilder object from 'assistant', then I can call
gtk_builder_get_object() to get the widget by its id. If I cannot get it,
then how to get the widget by id from the top level widget? Thanks.
2010/6/9 Florian MÃllner <florian muellner gmail com>
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
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
--
Regards
Tao Wang
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]