gtkUIManagerEnsureUpdate        package:RGtk2        R Documentation

_g_t_k_U_I_M_a_n_a_g_e_r_E_n_s_u_r_e_U_p_d_a_t_e

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

     Makes sure that all pending updates to the UI have been completed.

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

     gtkUIManagerEnsureUpdate(object)

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

'object': ['GtkUIManager']  a 'GtkUIManager'

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

     This may occasionally be necessary, since 'GtkUIManager' updates
     the  UI in an idle function. A typical example where this function
     is useful is to enforce that the menubar and toolbar have been
     added to  the main window before showing it:


     window$add(vbox, show = F)
     gSignalConnect(merge, "add_widget", add_widget, vbox)
     merge$addUiFromFile("my-menus")
     merge$addUiFromFile("my-toolbars")
     merge$ensureUpdate() 
     window$showAll()



     Since  2.4

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

     Derived by RGtkGen from GTK+ documentation

