gtkNotebookSetTabDetachable      package:RGtk2      R Documentation

_g_t_k_N_o_t_e_b_o_o_k_S_e_t_T_a_b_D_e_t_a_c_h_a_b_l_e

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

     Sets whether the tab can be detached from 'notebook' to another
     notebook or widget.

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

     gtkNotebookSetTabDetachable(object, child, detachable)

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

'object': ['GtkNotebook']  a 'GtkNotebook'

 'child': ['GtkWidget']  a child 'GtkWidget'

'detachable': [logical]  whether the tab is detachable or not

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

     Note that 2 notebooks must share a common group identificator (see
     'gtkNotebookSetGroupId') to allow automatic tabs interchange
     between them.

     If you want a widget to interact with a notebook through DnD
     (i.e.: accept dragged tabs from it) it must be set as a drop
     destination and accept the target "GTK_NOTEBOOK_TAB". The notebook
     will fill the selection with a GtkWidget** pointing to the child
     widget that corresponds to the dropped tab.


     on_drop_zone_drag_data_received <- function(widget, context, x, y,
                                                 selection_data, info,
     time,
                                                 user_data)
     {
       notebook <- context$getWidget()
       child <- selection_data$data
       # unfortunately, it's not possible to actually use 'child' -
     there
       # would need to be a way to derefernce it and make an
     externalptr
       # if you need this functionality, please let the RGtk2
     maintainer know.
       # process_widget(child)
       # notebook$remove(child)
     }
      If you want a notebook to accept drags from other widgets, you
     will have to set your own DnD code to do it.  

     Since  2.10

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

     Derived by RGtkGen from GTK+ documentation

