![]() |
![]() |
![]() |
GIMP Library Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties | Signals |
GimpPaletteSelectButton; GtkWidget * gimp_palette_select_button_new (const gchar *title
,const gchar *palette_name
); const gchar * gimp_palette_select_button_get_palette (GimpPaletteSelectButton *button
); void gimp_palette_select_button_set_palette (GimpPaletteSelectButton *button
,const gchar *palette_name
);
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 of the dialog to use or NULL to use the default title. |
|
Initial palette name. |
Returns : |
A GtkWidget that you can use in your UI. |
Since GIMP 2.4
const gchar * gimp_palette_select_button_get_palette
(GimpPaletteSelectButton *button
);
Retrieves the name of currently selected palette.
|
A GimpPaletteSelectButton |
Returns : |
an internal copy of the palette name which must not be freed. |
Since GIMP 2.4
void gimp_palette_select_button_set_palette (GimpPaletteSelectButton *button
,const gchar *palette_name
);
Sets the current palette for the palette select button.
|
A GimpPaletteSelectButton |
|
Palette name to set; NULL means no change. |
Since GIMP 2.4
"palette-name"
property "palette-name" gchar* : Read / Write
The name of the currently selected palette.
Default value: NULL
Since GIMP 2.4
"palette-set"
signalvoid user_function (GimpPaletteSelectButton *widget,
gchar *palette_name,
gboolean dialog_closing,
gpointer user_data) : Run First
The ::palette-set signal is emitted when the user selects a palette.
|
the object which received the signal. |
|
the name of the currently selected palette. |
|
whether the dialog was closed or not. |
|
user data set when the signal handler was connected. |
Since GIMP 2.4