4
@deftp Class <gnome-icon-entry>
5
This @code{<gobject>} class defines the following properties:
9
Unique identifier for the icon entry. This will be used to save the history
12
@item browse-dialog-title
13
Title for the Browse icon dialog.
16
Directory that will be searched for icons.
19
Filename that should be displayed in the icon entry.
22
Icon picker dialog. You can use this property to get the GtkDialog if you need
23
to modify or query any of its properties.
29
@defop Signal <gnome-icon-entry> changed
32
@defop Signal <gnome-icon-entry> browse
35
@deffn Function gnome-icon-entry-new (history_id@tie{}@code{mchars}) (browse_dialog_title@tie{}@code{mchars}) @result{}@tie{} (ret@tie{}@code{<gtk-widget>})
36
Creates a new icon entry widget
40
the id given to @code{<gnome-entry-new>}
42
@item browse-dialog-title
43
title of the browse dialog and icon selection dialog
46
Returns the new object
52
@deffn Function gnome-icon-entry-construct (self@tie{}@code{<gnome-icon-entry>}) (history_id@tie{}@code{mchars}) (browse_dialog_title@tie{}@code{mchars})
53
@deffnx Method construct
54
For language bindings and subclassing, from C use @code{<gnome-icon-entry-new>}
58
the GnomeIconEntry to work with
61
the id given to @code{<gnome-entry-new>} in the browse dialog
63
@item browse-dialog-title
64
title of the icon selection dialog
70
@deffn Function gnome-icon-entry-set-pixmap-subdir (self@tie{}@code{<gnome-icon-entry>}) (subdir@tie{}@code{mchars})
71
@deffnx Method set-pixmap-subdir
72
Sets the subdirectory below gnome's default pixmap directory to use as the
73
default path for the file entry. The path can also be an absolute one. If
74
@samp{@code{#f}} is passed then the pixmap directory itself is used.
78
the GnomeIconEntry to work with
87
@deffn Function gnome-icon-entry-get-filename (self@tie{}@code{<gnome-icon-entry>}) @result{}@tie{} (ret@tie{}@code{mchars})
88
@deffnx Method get-filename
89
Gets the file name of the image if it was possible to load it into the preview.
90
That is, it will only return a filename if the image exists and it was possible
91
to load it as an image.
95
the GnomeIconEntry to work with
98
a newly allocated string with the path or @samp{@code{#f}} if it couldn't load
105
@deffn Function gnome-icon-entry-set-filename (self@tie{}@code{<gnome-icon-entry>}) (filename@tie{}@code{mchars}) @result{}@tie{} (ret@tie{}@code{bool})
106
@deffnx Method set-filename
107
Sets the icon of GnomeIconEntry to be the one pointed to by @var{filename} (in
108
the current subdirectory).
112
the GnomeIconEntry to work with
118
@samp{@code{#t}} if icon was loaded ok, @samp{@code{#f}} otherwise
124
@deffn Function gnome-icon-entry-set-history-id (self@tie{}@code{<gnome-icon-entry>}) (history_id@tie{}@code{mchars})
125
@deffnx Method set-history-id
126
Set the history_id of the entry in the browse dialog and reload the history
130
the GnomeIconEntry to work with
133
the id given to @code{<gnome-entry-new>} in the browse dialog
139
@deffn Function gnome-icon-entry-set-max-saved (self@tie{}@code{<gnome-icon-entry>}) (max_saved@tie{}@code{unsigned-int})
140
@deffnx Method set-max-saved
141
Set the max_saved of the entry in the browse dialog
145
the GnomeIconEntry to work with
148
the maximum number of saved entries
156
@deffn Function gnome-icon-entry-pick-dialog (self@tie{}@code{<gnome-icon-entry>}) @result{}@tie{} (ret@tie{}@code{<gtk-widget>})
157
@deffnx Method pick-dialog
158
If a pick dialog exists, return a pointer to it or return NULL. This is if you
159
need to do something with all dialogs. You would use the browse signal with
160
connect_after to get the pick dialog when it is displayed.
164
the GnomeIconEntry to work with
167
The pick dialog or @samp{@code{#f}} if none exists
173
@deffn Function gnome-icon-entry-set-icon (self@tie{}@code{<gnome-icon-entry>}) (filename@tie{}@code{mchars})
174
@deffnx Method set-icon
175
Deprecated in favour of @code{<gnome-icon-entry-set-filename>}
179
the GnomeIconEntry to work with
188
@deffn Function gnome-icon-entry-gnome-file-entry (self@tie{}@code{<gnome-icon-entry>}) @result{}@tie{} (ret@tie{}@code{<gtk-widget>})
189
@deffnx Method gnome-file-entry
190
Get the GnomeFileEntry widget that's part of the entry DEPRECATED! Use the
191
"changed" signal for getting changes
195
the GnomeIconEntry to work with
198
Returns GnomeFileEntry widget
204
@deffn Function gnome-icon-entry-gnome-entry (self@tie{}@code{<gnome-icon-entry>}) @result{}@tie{} (ret@tie{}@code{<gtk-widget>})
205
@deffnx Method gnome-entry
206
Get the GnomeEntry widget that's part of the entry DEPRECATED! Use the "changed"
207
signal for getting changes
211
the GnomeIconEntry to work with
214
Returns GnomeEntry widget
220
@deffn Function gnome-icon-entry-gtk-entry (self@tie{}@code{<gnome-icon-entry>}) @result{}@tie{} (ret@tie{}@code{<gtk-widget>})
221
@deffnx Method gtk-entry
222
Get the GtkEntry widget that's part of the entry. DEPRECATED! Use the "changed"
223
signal for getting changes
227
the GnomeIconEntry to work with
230
Returns GtkEntry widget