gtkToolbarAppendItem          package:RGtk2          R Documentation

_g_t_k_T_o_o_l_b_a_r_A_p_p_e_n_d_I_t_e_m

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

     Inserts a new item into the toolbar. You must specify the position
     in the toolbar where it will be inserted. *WARNING:
     'gtk_toolbar_append_item' is deprecated and should not be used in
     newly-written code.*

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

     gtkToolbarAppendItem(object, text, tooltip.text, tooltip.private.text, icon, callback, user.data = NULL)

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

'object': ['GtkToolbar']  a 'GtkToolbar'.

  'text': [char]  give your toolbar button a label.

'tooltip.text': [char]  a string that appears when the user holds the
          mouse over this item.

'tooltip.private.text': [char]  use with 'GtkTipsQuery'.

  'icon': ['GtkWidget']  a 'GtkWidget' that should be used as the
          button's icon.

'callback': [GtkSignalFunc]  the function to be executed when the
          button is pressed.

'user.data': [R object]  a pointer to any data you wish to be passed to
          the callback.

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

     'callback' must be a pointer to a function taking a 'GtkWidget'
     and a gpointer as arguments. Use the 'gtkSignalFunc()' to cast the
     function to 'GtkSignalFunc'.

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

     ['GtkWidget']  the new toolbar item as a 'GtkWidget'.

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

     Derived by RGtkGen from GTK+ documentation

