Top | ![]() |
![]() |
![]() |
![]() |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── GtkButton ╰── XAppIconChooserButton
XAppIconChooserButton implements AtkImplementorIface, GtkBuildable, GtkActionable and GtkActivatable.
The XAppIconChooserButton creates a button so that the user can select an icon. When the button is clicked it will open an XAppIconChooserDialog. The currently selected icon will be displayed as the button image.
XAppIconChooserButton *
xapp_icon_chooser_button_new (void
);
Creates a new XAppIconChooserButton and sets its icon to icon
.
XAppIconChooserButton *
xapp_icon_chooser_button_new_with_size
(GtkIconSize icon_size
);
Creates a new XAppIconChooserButton, and sets the sizes of the button image and the icons in
the dialog. Note that xapp_icon_chooser_button_new_with_size (NULL, NULL) is the same as calling
xapp_icon_chooser_button_new()
.
void xapp_icon_chooser_button_set_icon_size (XAppIconChooserButton *button
,GtkIconSize icon_size
);
Sets the icon size used in the button.
void xapp_icon_chooser_button_set_icon (XAppIconChooserButton *button
,const gchar *icon
);
Sets the icon on the XAppIconChooserButton.
void xapp_icon_chooser_button_set_default_category (XAppIconChooserButton *button
,const gchar *category
);
Sets the icon on the XAppIconChooserButton.
const gchar *
xapp_icon_chooser_button_get_icon (XAppIconChooserButton *button
);
Gets the icon from the XAppIconChooserButton.
XAppIconChooserDialog *
xapp_icon_chooser_button_get_dialog (XAppIconChooserButton *button
);
Gets a reference to the icon chooser dialog for the XAppIconChooserButton. This is useful for setting properties on the dialog.
#define XAPP_TYPE_ICON_CHOOSER_BUTTON (xapp_icon_chooser_button_get_type ())
“category”
property “category” char *
The category selected by default.
Owner: XAppIconChooserButton
Flags: Read / Write
Default value: ""
“icon”
property “icon” char *
The preferred size to use when looking up icons. This only works with icon names. Additionally, there is no guarantee that a selected icon name will exist in a particular size.
Owner: XAppIconChooserButton
Flags: Read / Write
Default value: ""
“icon-size”
property“icon-size” GtkIconSize
The size to use when displaying the icon.
Owner: XAppIconChooserButton
Flags: Read / Write
Default value: GTK_ICON_SIZE_DND