![]() |
![]() |
![]() |
MATE UI Library Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties | Signals |
#include <libmateui/libmateui.h> MateIconEntryPrivate; struct MateIconEntry; GtkWidget * mate_icon_entry_new (const gchar *history_id
,const gchar *browse_dialog_title
); void mate_icon_entry_construct (MateIconEntry *ientry
,const gchar *history_id
,const gchar *browse_dialog_title
); void mate_icon_entry_set_pixmap_subdir (MateIconEntry *ientry
,const gchar *subdir
); gchar * mate_icon_entry_get_filename (MateIconEntry *ientry
); gboolean mate_icon_entry_set_filename (MateIconEntry *ientry
,const gchar *filename
); void mate_icon_entry_set_browse_dialog_title (MateIconEntry *ientry
,const gchar *browse_dialog_title
); void mate_icon_entry_set_history_id (MateIconEntry *ientry
,const gchar *history_id
); void mate_icon_entry_set_max_saved (MateIconEntry *ientry
,guint max_saved
); GtkWidget * mate_icon_entry_pick_dialog (MateIconEntry *ientry
); void mate_icon_entry_set_icon (MateIconEntry *ientry
,const gchar *filename
); GtkWidget * mate_icon_entry_mate_file_entry (MateIconEntry *ientry
); GtkWidget * mate_icon_entry_mate_entry (MateIconEntry *ientry
); GtkWidget * mate_icon_entry_gtk_entry (MateIconEntry *ientry
);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBox +----GtkVBox +----MateIconEntry
MateIconEntry implements AtkImplementorIface, GtkBuildable and GtkOrientable.
"browse-dialog-title" gchar* : Read / Write "filename" gchar* : Read / Write "history-id" gchar* : Read / Write "pick-dialog" GtkDialog* : Read "pixmap-subdir" gchar* : Read / Write
GtkWidget * mate_icon_entry_new (const gchar *history_id
,const gchar *browse_dialog_title
);
Creates a new icon entry widget
|
the id given to mate_entry_new |
|
title of the browse dialog and icon selection dialog |
Returns : |
Returns the new object |
void mate_icon_entry_construct (MateIconEntry *ientry
,const gchar *history_id
,const gchar *browse_dialog_title
);
For language bindings and subclassing, from C use mate_icon_entry_new
|
the MateIconEntry to work with |
|
the id given to mate_entry_new in the browse dialog |
|
title of the icon selection dialog |
void mate_icon_entry_set_pixmap_subdir (MateIconEntry *ientry
,const gchar *subdir
);
Sets the subdirectory below mate's default
pixmap directory to use as the default path for the file
entry. The path can also be an absolute one. If NULL
is passed
then the pixmap directory itself is used.
|
the MateIconEntry to work with |
|
subdirectory |
gchar * mate_icon_entry_get_filename (MateIconEntry *ientry
);
Gets the file name of the image if it was possible to load it into the preview. That is, it will only return a filename if the image exists and it was possible to load it as an image.
|
the MateIconEntry to work with |
Returns : |
a newly allocated string with the path or NULL if it
couldn't load the file
|
gboolean mate_icon_entry_set_filename (MateIconEntry *ientry
,const gchar *filename
);
Sets the icon of MateIconEntry to be the one pointed to by
filename
(in the current subdirectory).
|
the MateIconEntry to work with |
|
a filename |
Returns : |
TRUE if icon was loaded ok, FALSE otherwise
|
void mate_icon_entry_set_browse_dialog_title (MateIconEntry *ientry
,const gchar *browse_dialog_title
);
Set the title of the browse dialog. It will not effect an existing dialog.
|
the MateIconEntry to work with |
|
title of the icon selection dialog |
void mate_icon_entry_set_history_id (MateIconEntry *ientry
,const gchar *history_id
);
Set the history_id of the entry in the browse dialog and reload the history
|
the MateIconEntry to work with |
|
the id given to mate_entry_new in the browse dialog |
void mate_icon_entry_set_max_saved (MateIconEntry *ientry
,guint max_saved
);
Set the max_saved of the entry in the browse dialog
|
the MateIconEntry to work with |
|
the maximum number of saved entries |
Since 2.4
GtkWidget * mate_icon_entry_pick_dialog (MateIconEntry *ientry
);
If a pick dialog exists, return a pointer to it or return NULL. This is if you need to do something with all dialogs. You would use the browse signal with connect_after to get the pick dialog when it is displayed.
|
the MateIconEntry to work with |
Returns : |
The pick dialog or NULL if none exists
|
void mate_icon_entry_set_icon (MateIconEntry *ientry
,const gchar *filename
);
Deprecated in favour of mate_icon_entry_set_filename
|
the MateIconEntry to work with |
|
a filename |
GtkWidget * mate_icon_entry_mate_file_entry (MateIconEntry *ientry
);
Get the MateFileEntry widget that's part of the entry DEPRECATED! Use the "changed" signal for getting changes
|
the MateIconEntry to work with |
Returns : |
Returns MateFileEntry widget |
GtkWidget * mate_icon_entry_mate_entry (MateIconEntry *ientry
);
Get the MateEntry widget that's part of the entry DEPRECATED! Use the "changed" signal for getting changes
|
the MateIconEntry to work with |
Returns : |
Returns MateEntry widget |
GtkWidget * mate_icon_entry_gtk_entry (MateIconEntry *ientry
);
Get the GtkEntry widget that's part of the entry. DEPRECATED! Use the "changed" signal for getting changes
|
the MateIconEntry to work with |
Returns : |
Returns GtkEntry widget |
"browse-dialog-title"
property "browse-dialog-title" gchar* : Read / Write
Title for the Browse icon dialog.
Default value: NULL
"filename"
property "filename" gchar* : Read / Write
Filename that should be displayed in the icon entry.
Default value: NULL
"history-id"
property "history-id" gchar* : Read / Write
Unique identifier for the icon entry. This will be used to save the history list.
Default value: NULL
"pick-dialog"
property "pick-dialog" GtkDialog* : Read
Icon picker dialog. You can use this property to get the GtkDialog if you need to modify or query any of its properties.
"browse"
signalvoid user_function (MateIconEntry *iconentry,
gpointer user_data) : Run Last
|
the object which received the signal. |
|
user data set when the signal handler was connected. |
"changed"
signalvoid user_function (MateIconEntry *iconentry,
gpointer user_data) : Run Last
|
the object which received the signal. |
|
user data set when the signal handler was connected. |