gtkWidgetGetAncestor          package:RGtk2          R Documentation

_g_t_k_W_i_d_g_e_t_G_e_t_A_n_c_e_s_t_o_r

_D_e_s_c_r_i_p_t_i_o_n:

     Gets the first ancestor of 'widget' with type 'widget.type'. For
     example, 'gtk_widget_get_ancestor (widget, GTK_TYPE_BOX)' gets 
     the first 'GtkBox' that's an ancestor of 'widget'. No reference
     will be  added to the returned widget; it should not be
     unreferenced. See note  about checking for a toplevel 'GtkWindow'
     in the docs for  'gtkWidgetGetToplevel'.

_U_s_a_g_e:

     gtkWidgetGetAncestor(object, widget.type)

_A_r_g_u_m_e_n_t_s:

'object': ['GtkWidget']  a 'GtkWidget'

'widget.type': ['GType']  ancestor type

_D_e_t_a_i_l_s:

     Note that unlike 'gtkWidgetIsAncestor', 'gtkWidgetGetAncestor' 
     considers 'widget' to be an ancestor of itself.

_V_a_l_u_e:

     ['GtkWidget']  the ancestor widget, or 'NULL' if not found

_A_u_t_h_o_r(_s):

     Derived by RGtkGen from GTK+ documentation

