It derives from <GtkWidget>.
Opens a font chooser dialog to select a font.
It is suitable widget for selecting a font in a preference dialog.
fontbutton
╰── button.font
╰── [content]
<GtkFontDialogButton> has a single CSS
node with name fontbutton which contains a button node with the .font
style class.
The <GtkFontDialog> that contains parameters
for the font chooser dialog.
Its value is a <GtkFontDialog>, or #f.
Set it with (set! (font-dialog-button:dialog self) value).
The selected font.
This property can be set to give the button its initial font, and it will be updated to reflect the users choice in the font chooser dialog.
Listen to notify::font-desc to get informed about changes to the
buttons font.
Its value is a
<PangoFontDescription>, or
#f.
Set it with (set! (font-dialog-button:font-desc self) value).
The selected font features.
This property will be updated to reflect the users choice in the font chooser dialog.
Listen to notify::font-features to get informed about changes to
the buttons font features.
Its value is a string, or #f.
Set it with (set! (font-dialog-button:font-features self) value).
The selected language for font features.
This property will be updated to reflect the users choice in the font chooser dialog.
Listen to notify::language to get informed about changes to the
buttons language.
Its value is a <PangoLanguage>, or
#f.
Set it with (set! (font-dialog-button:language self) value).
The level of detail for the font chooser dialog.
Its value is a <GtkFontLevel> (or, to set it,
one of its symbols).
Set it with (set! (font-dialog-button:level self) value).
Whether the buttons label will be drawn in the selected font.
Its value is a boolean.
Set it with (set! (font-dialog-button:use-font self) value).
Whether the buttons label will use the selected font size.
Its value is a boolean.
Set it with (set! (font-dialog-button:use-size self) value).
Returns the <GtkFontDialog> of self.
Passed: a <GtkFontDialogButton>.
Returned: a <GtkFontDialog>, or #f.
the <GtkFontDialog>
Returns the font of the button.
This function is what should be used to obtain the font that was chosen by the user. To get informed about changes, listen to "notify::font-desc".
Passed: a <GtkFontDialogButton>.
Returned: a <PangoFontDescription>,
or #f.
the font
Returns the font features of the button.
This function is what should be used to obtain the font features that were chosen by the user. To get informed about changes, listen to "notify::font-features".
Note that the button will only let users choose font features if
font-dialog-button:level
is set to features.
Passed: a <GtkFontDialogButton>.
Returned: a string, or #f.
the font features
Returns the language that is used for font features.
Passed: a <GtkFontDialogButton>.
Returned: a <PangoLanguage>, or #f.
the language
Returns the level of detail at which this dialog lets the user select fonts.
Passed: a <GtkFontDialogButton>.
a ‘GtkFontDialogButton
Returned: a <GtkFontLevel>.
the level of detail
Returns whether the selected font is used in the label.
Passed: a <GtkFontDialogButton>.
Returned: a boolean.
whether the selected font is used in the label
Returns whether the selected font size is used in the label.
Passed: a <GtkFontDialogButton>.
Returned: a boolean.
whether the selected font size is used in the label
Creates a new <GtkFontDialogButton> with
the given <GtkFontDialog>.
You can pass NULL to this function and set a
<GtkFontDialog> later. The button will be
insensitive until that happens.
Passed, or left out: a <GtkFontDialog>, or
#f.
the <GtkFontDialog> to use
Returned: a <GtkWidget>.
the new <GtkFontDialogButton>
Sets a <GtkFontDialog> object to use for
creating the font chooser dialog that is presented when the user clicks
the button.
Passed: a <GtkFontDialogButton>.
Passed: a <GtkFontDialog>.
the new <GtkFontDialog>
Sets the font of the button.
Passed: a <GtkFontDialogButton>.
Passed: a <PangoFontDescription>.
the new font
Sets the font features of the button.
Passed: a <GtkFontDialogButton>.
Passed, or left out: a string, or #f.
the font features
Sets the language to use for font features.
Passed: a <GtkFontDialogButton>.
Passed, or left out: a <PangoLanguage>, or
#f.
the new language
Sets the level of detail at which this dialog lets the user select fonts.
Passed: a <GtkFontDialogButton>.
Passed: a <GtkFontLevel>, or one of its symbols.
the level of detail
If use-font is TRUE, the font name will be written using
the selected font.
Passed: a <GtkFontDialogButton>.
Passed: a boolean.
If TRUE, font name will be written using the chosen font
If use-size is TRUE, the font name will be written using
the selected font size.
Passed: a <GtkFontDialogButton>.
Passed: a boolean.
If TRUE, font name will be written using the chosen font size
Connect a handler with (connect object font-dialog-button:activate
handler). It is called as (handler self).
Emitted when the font dialog button is activated.
The ::activate signal on
<GtkFontDialogButton> is an action signal
and emitting it causes the button to pop up its dialog.
Passed: a <GtkFontDialogButton>.