| Top |
| GtkWidget * | xfce_icon_chooser_dialog_new () |
| gchar * | xfce_icon_chooser_dialog_get_icon () |
| gboolean | xfce_icon_chooser_dialog_set_icon () |
GObject
╰── GInitiallyUnowned
╰── GtkWidget
╰── GtkContainer
╰── GtkBin
╰── GtkWindow
╰── GtkDialog
╰── XfceIconChooserDialog
The XfceIconChooserDialog class provides an easy to use dialog to ask the user to select either a named icon from the selected icon theme, or an image file from the local file system.
GtkWidget * xfce_icon_chooser_dialog_new (const gchar *title,GtkWindow *parent,const gchar *first_button_text,...);
Creates a new XfceIconChooserDialog. This function is analogous to gtk_dialog_new_with_buttons().
title |
title of the dialog, or |
|
parent |
transient parent of the dialog, or |
|
first_button_text |
stock-id or text to go in the first button, or |
|
... |
response-id for the first button, then additional (button, id) pairs,
ending with |
Since: 4.21.0
gchar *
xfce_icon_chooser_dialog_get_icon (XfceIconChooserDialog *dialog);
Returns the currently selected icon for the dialog
. The selected icon can be either
a named icon (from the active icon theme) or the absolute path to an image file in the file system.
You can distinguish between those two icon types using the g_path_is_absolute() function. If no
icon is currently selected, NULL will be returned.
The caller is responsible to free the returned string using g_free() when no longer needed.
the currently selected icon for dialog
or NULL if no icon is selected.
[nullable][transfer full]
Since: 4.21.0
gboolean xfce_icon_chooser_dialog_set_icon (XfceIconChooserDialog *dialog,const gchar *icon);
Preselects the specified icon
in the dialog
, and returns TRUE if the
icon
was successfully selected.
Since: 4.21.0
typedef struct _XfceIconChooserDialog XfceIconChooserDialog;
The XfceIconChooserDialog class provides an easy to use dialog to ask the user to select either a named icon from the selected icon theme, or an image file from the local file system.