gtkIconSetAddSource          package:RGtk2          R Documentation

_g_t_k_I_c_o_n_S_e_t_A_d_d_S_o_u_r_c_e

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

     Icon sets have a list of 'GtkIconSource', which they use as base
     icons for rendering icons in different states and sizes. Icons are
     scaled, made to look insensitive, etc. in 'gtkIconSetRenderIcon',
     but 'GtkIconSet' needs base images to work with. The base images
     and when to use them are described by a 'GtkIconSource'.

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

     gtkIconSetAddSource(object, source)

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

'object': ['GtkIconSet']  a 'GtkIconSet'

'source': ['GtkIconSource']  a 'GtkIconSource'

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

     This function copies 'source', so you can reuse the same source
     immediately without affecting the icon set.

     An example of when you'd use this function: a web browser's "Back
     to Previous Page" icon might point in a different direction in
     Hebrew and in English; it might look different when insensitive;
     and it might change size depending on toolbar mode (small/large
     icons). So a single icon set would contain all those variants of
     the icon, and you might add a separate source for each one.

     You should nearly always add a "default" icon source with all
     fields wildcarded, which will be used as a fallback if no more
     specific source matches. 'GtkIconSet' always prefers more specific
     icon sources to more generic icon sources. The order in which you
     add the sources to the icon set does not matter.
     'gtkIconSetNewFromPixbuf' creates a new icon set with a default
     icon source based on the given pixbuf.

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

     Derived by RGtkGen from GTK+ documentation

