gtkMenuSetAccelPath          package:RGtk2          R Documentation

_g_t_k_M_e_n_u_S_e_t_A_c_c_e_l_P_a_t_h

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

     Sets an accelerator path for this menu from which accelerator
     paths for its immediate children, its menu items, can be
     constructed. The main purpose of this function is to spare the
     programmer the inconvenience of having to call
     'gtkMenuItemSetAccelPath' on each menu item that should support
     runtime user changable accelerators. Instead, by just calling
     'gtkMenuSetAccelPath' on their parent, each menu item of this
     menu, that contains a label describing its purpose, automatically
     gets an accel path assigned. For example, a menu containing menu
     items "New" and "Exit", will, after  'gtk_menu_set_accel_path
     (menu, "<Gnumeric-Sheet>/File");' has been called, assign its
     items the accel paths: '"<Gnumeric-Sheet>/File/New"' and
     '"<Gnumeric-Sheet>/File/Exit"'. Assigning accel paths to menu
     items then enables the user to change their accelerators at
     runtime. More details about accelerator paths and their default
     setups can be found at 'gtkAccelMapAddEntry'.

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

     gtkMenuSetAccelPath(object, accel.path)

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

'object': ['GtkMenu']        a valid 'GtkMenu'

'accel.path': [character]  a valid accelerator path

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

     Derived by RGtkGen from GTK+ documentation

