1
<!-- ##### SECTION Title ##### -->
4
<!-- ##### SECTION Short_Description ##### -->
5
A dialog box for selecting fonts
7
<!-- ##### SECTION Long_Description ##### -->
9
The #GtkFontSelectionDialog widget is a dialog box for selecting a font.
12
To set the font which is initially selected, use
13
gtk_font_selection_dialog_set_font_name().
16
To get the selected font use gtk_font_selection_dialog_get_font_name().
19
To change the text which is shown in the preview area, use
20
gtk_font_selection_dialog_set_preview_text().
23
<refsect2 id="GtkFontSelectionDialog-BUILDER-UI">
24
<title>GtkFontSelectionDialog as GtkBuildable</title>
26
The GtkFontSelectionDialog implementation of the GtkBuildable interface
27
exposes the embedded #GtkFontSelection as internal child with the
28
name "font_selection". It also exposes the buttons with the names
29
"ok_button", "cancel_button" and "apply_button".
33
<!-- ##### SECTION See_Also ##### -->
38
<term>#GtkFontSelection</term>
39
<listitem><para>the underlying widget for selecting
40
fonts.</para></listitem>
41
<term>#GtkDialog</term>
42
<listitem><para>the parent class of GtkFontSelectionDialog</para></listitem>
48
<!-- ##### SECTION Stability_Level ##### -->
51
<!-- ##### SECTION Image ##### -->
54
<!-- ##### STRUCT GtkFontSelectionDialog ##### -->
58
<!-- ##### FUNCTION gtk_font_selection_dialog_new ##### -->
67
<!-- ##### FUNCTION gtk_font_selection_dialog_get_font ##### -->
76
<!-- ##### FUNCTION gtk_font_selection_dialog_get_font_name ##### -->
84
<!-- ##### FUNCTION gtk_font_selection_dialog_set_font_name ##### -->
94
<!-- ##### FUNCTION gtk_font_selection_dialog_get_preview_text ##### -->
103
<!-- ##### FUNCTION gtk_font_selection_dialog_set_preview_text ##### -->
112
<!-- ##### FUNCTION gtk_font_selection_dialog_get_apply_button ##### -->
121
<!-- ##### FUNCTION gtk_font_selection_dialog_get_cancel_button ##### -->
130
<!-- ##### FUNCTION gtk_font_selection_dialog_get_ok_button ##### -->
139
<!-- ##### FUNCTION gtk_font_selection_dialog_get_font_selection ##### -->