Top |
GtkWidget * | gimp_font_select_button_new () |
const gchar * | gimp_font_select_button_get_font () |
void | gimp_font_select_button_set_font () |
GObject ╰── GInitiallyUnowned ╰── GtkObject ╰── GtkWidget ╰── GtkContainer ╰── GtkBox ╰── GimpSelectButton ╰── GimpFontSelectButton
GimpFontSelectButton implements AtkImplementorIface, GtkBuildable and GtkOrientable.
GtkWidget * gimp_font_select_button_new (const gchar *title
,const gchar *font_name
);
Creates a new GtkWidget that completely controls the selection of a font. This widget is suitable for placement in a table in a plug-in dialog.
title |
Title of the dialog to use or |
|
font_name |
Initial font name. |
Since: 2.4
const gchar *
gimp_font_select_button_get_font (GimpFontSelectButton *button
);
Retrieves the name of currently selected font.
Since: 2.4
void gimp_font_select_button_set_font (GimpFontSelectButton *button
,const gchar *font_name
);
Sets the current font for the font select button.
Since: 2.4
“font-name”
property “font-name” gchar *
The name of the currently selected font.
Owner: GimpFontSelectButton
Flags: Read / Write
Default value: "Sans-serif"
Since: 2.4
“title”
property “title” gchar *
The title to be used for the font selection popup dialog.
Owner: GimpFontSelectButton
Flags: Read / Write / Construct Only
Default value: "Font Selection"
Since: 2.4
“font-set”
signalvoid user_function (GimpFontSelectButton *widget, gchar *font_name, gboolean dialog_closing, gpointer user_data)
The ::font-set signal is emitted when the user selects a font.
widget |
the object which received the signal. |
|
font_name |
the name of the currently selected font. |
|
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