Top |
GtkWidget * | gimp_palette_select_button_new () |
const gchar * | gimp_palette_select_button_get_palette () |
void | gimp_palette_select_button_set_palette () |
GObject ╰── GInitiallyUnowned ╰── GtkObject ╰── GtkWidget ╰── GtkContainer ╰── GtkBox ╰── GimpSelectButton ╰── GimpPaletteSelectButton
GimpPaletteSelectButton implements AtkImplementorIface, GtkBuildable and GtkOrientable.
GtkWidget * gimp_palette_select_button_new (const gchar *title
,const gchar *palette_name
);
Creates a new GtkWidget that completely controls the selection of a palette. This widget is suitable for placement in a table in a plug-in dialog.
title |
Title of the dialog to use or |
|
palette_name |
Initial palette name. |
Since: 2.4
const gchar *
gimp_palette_select_button_get_palette
(GimpPaletteSelectButton *button
);
Retrieves the name of currently selected palette.
Since: 2.4
void gimp_palette_select_button_set_palette (GimpPaletteSelectButton *button
,const gchar *palette_name
);
Sets the current palette for the palette select button.
Since: 2.4
“palette-name”
property “palette-name” char *
The name of the currently selected palette.
Owner: GimpPaletteSelectButton
Flags: Read / Write
Default value: NULL
Since: 2.4
“title”
property “title” char *
The title to be used for the palette selection popup dialog.
Owner: GimpPaletteSelectButton
Flags: Read / Write / Construct Only
Default value: "Palette Selection"
Since: 2.4
“palette-set”
signalvoid user_function (GimpPaletteSelectButton *widget, char *palette_name, gboolean dialog_closing, gpointer user_data)
The ::palette-set signal is emitted when the user selects a palette.
widget |
the object which received the signal. |
|
palette_name |
the name of the currently selected palette. |
|
dialog_closing |
whether the dialog was closed or not. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First
Since: 2.4