Gtk.FontChooserDialog¶
class — extends Dialog, Accessible, Buildable, ConstraintTarget, FontChooser, Native, Root, ShortcutManager
:::warning Deprecated since 4.10 This API is deprecated. :::
The GtkFontChooserDialog widget is a dialog for selecting a font.
<picture> <source srcset="fontchooser-dark.png" media="(prefers-color-scheme: dark)"> <img alt="An example GtkFontChooserDialog" src="fontchooser.png"> </picture>
GtkFontChooserDialog implements the FontChooser interface
and does not provide much API of its own.
To create a GtkFontChooserDialog, use FontChooserDialog.new.
GtkFontChooserDialog as GtkBuildable¶
The GtkFontChooserDialog implementation of the GtkBuildable
interface exposes the buttons with the names “select_button”
and “cancel_button”.
CSS nodes¶
GtkFontChooserDialog has a single CSS node with the name window and style
class .fontchooser.
Constructors¶
new¶
:::warning Deprecated since 4.10 This API is deprecated. :::
Creates a new GtkFontChooserDialog.
Parameters:
title— Title of the dialogparent— Transient parent of the dialog