findWidgetByType            package:RGtk2            R Documentation

_F_i_n_d _w_i_d_g_e_t _i_n _h_i_e_r_a_r_c_h_y _b_y _t_y_p_e

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

     *DEPRECATED!! (compatibility wrappers for RGtk 1!)* 

     This function recursively descends the widget hierarchy identified
     by the root node 'win' and finds the first widget that matches the
     specified target type.

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

     findWidgetByType(win, gtkType = "GtkMenuBar", verbose = FALSE)

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

     win: the root node of the widget hierarchy whose children and
          descendants are to be searced.

 gtkType: the name of the Gtk type we are looking for. If this is a
          function, it is called for each widget in the hierarchy until
          it returns 'TRUE'. Each call is given the widget as its only
          argument and expected to return a logical value indicating
          whether the widget matches or not. One can use a closure and
          always return 'FALSE' if one wants to iterate over all the
          widgets and collect the matching ones. 

 verbose: a logical value indicating whether to print information to
          the console as we recurse.

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

     The widget that matched or 'NULL'.

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

     Duncan Temple Lang <duncan@research.bell-labs.com>

_R_e_f_e_r_e_n_c_e_s:

     Information on the package is available from <URL:
     http://www.omegahat.org/RGtk>.

     Information on Gtk is available from <URL: http://www.gtk.org>.

_S_e_e _A_l_s_o:

     'gtkContainerGetChildren'

