2
2
@c %start of fragment
4
@deftp Class <gnome-icon-selection>
5
This @code{<gobject>} class defines no properties, other than those defined by
10
@deffn Function gnome-icon-selection-new @result{}@tie{} (ret@tie{}@code{<gtk-widget>})
11
Creates a new icon selection widget, it uses GnomeIconList for the listing of
16
Returns the new object
22
@deffn Function gnome-icon-selection-add-defaults (self@tie{}@code{<gnome-icon-selection>})
23
@deffnx Method add-defaults
24
Adds the default pixmap directory into the selection widget. It doesn't show the
25
icons in the selection until you do @code{<gnome-icon-selection-show-icons>}.
29
GnomeIconSelection to work with
35
@deffn Function gnome-icon-selection-add-directory (self@tie{}@code{<gnome-icon-selection>}) (dir@tie{}@code{mchars})
36
@deffnx Method add-directory
37
Adds the icons from the directory @var{dir} to the selection widget. It doesn't
38
show the icons in the selection until you do
39
@code{<gnome-icon-selection-show-icons>}.
43
GnomeIconSelection to work with
46
directory with pixmaps
52
@deffn Function gnome-icon-selection-show-icons (self@tie{}@code{<gnome-icon-selection>})
53
@deffnx Method show-icons
54
Shows the icons inside the widget that were added with
55
@code{<gnome-icon-selection-add-defaults>} and
56
@code{<gnome-icon-selection-add-directory>}. Before this function is called the
57
icons aren't actually added to the listing and can't be picked by the user.
61
GnomeIconSelection to work with
67
@deffn Function gnome-icon-selection-clear (self@tie{}@code{<gnome-icon-selection>}) (not_shown@tie{}@code{bool})
69
Clear the currently shown icons, the ones that weren't shown yet are not cleared
70
unless the not_shown parameter is given, in which case even those are cleared.
74
GnomeIconSelection to work with
83
@deffn Function gnome-icon-selection-get-icon (self@tie{}@code{<gnome-icon-selection>}) (full_path@tie{}@code{bool}) @result{}@tie{} (ret@tie{}@code{mchars})
84
@deffnx Method get-icon
85
Gets the currently selected icon name, if full_path is true, it returns the full
86
path to the icon, if none is selected it returns NULL
90
GnomeIconSelection to work with
96
internal string, it must not be changed or freed or NULL
102
@deffn Function gnome-icon-selection-select-icon (self@tie{}@code{<gnome-icon-selection>}) (filename@tie{}@code{mchars})
103
@deffnx Method select-icon
104
Selects the icon @var{filename}. This icon must have already been added and
105
shown * (see @var{gnome-icon-selection-show-icons})
109
GnomeIconSelection to work with
118
@deffn Function gnome-icon-selection-stop-loading (self@tie{}@code{<gnome-icon-selection>})
119
@deffnx Method stop-loading
120
Stop the loading of images when we are in the loop in show_icons, otherwise it
121
does nothing and is harmless, it should be used say if the dialog was hidden or
122
when we want to quickly stop loading the images to do something else without
123
destroying the icon selection object. The remaining icons can be shown by
124
@code{<gnome-icon-selection-show-icons>}.
128
GnomeIconSelection to work with
134
@deffn Function gnome-icon-selection-get-gil (self@tie{}@code{<gnome-icon-selection>}) @result{}@tie{} (ret@tie{}@code{<gtk-widget>})
135
@deffnx Method get-gil
136
Gets the @code{<gnome-icon-list>} widget that is used for the display of icons
140
GnomeIconSelection to work with
143
a @code{<gtk-widget>} pointer to the interal widget
149
@deffn Function gnome-icon-selection-get-box (self@tie{}@code{<gnome-icon-selection>}) @result{}@tie{} (ret@tie{}@code{<gtk-widget>})
150
@deffnx Method get-box
151
Gets the @code{<gtk-vbox>} widget that is used to pack the different elements of
156
GnomeIconSelection to work with
159
a @code{<gtk-widget>} pointer to the interal widget
166
5
@c %end of fragment