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 <!-- ##### SECTION See_Also ##### -->
28 <term>#GtkFontSelection</term>
29 <listitem><para>the underlying widget for selecting
30 fonts.</para></listitem>
31 <term>#GtkDialog</term>
32 <listitem><para>the parent class of GtkFontSelectionDialog</para></listitem>
38 <!-- ##### SECTION Stability_Level ##### -->
41 <!-- ##### STRUCT GtkFontSelectionDialog ##### -->
44 @ok_button: The OK button of the dialog
45 @apply_button: The Apply button of the dialog. This button is hidden
46 by default but you can show/hide it
47 @cancel_button: The Cancel button of the dialog
49 <!-- ##### FUNCTION gtk_font_selection_dialog_new ##### -->
51 Creates a new #GtkFontSelectionDialog.
54 @title: the title of the dialog box.
55 @Returns: a new #GtkFontSelectionDialog.
58 <!-- ##### FUNCTION gtk_font_selection_dialog_get_font ##### -->
60 Gets the currently-selected font.
63 @fsd: a #GtkFontSelectionDialog.
64 @Returns: the currently-selected font, or %NULL if no font is selected.
67 <!-- ##### FUNCTION gtk_font_selection_dialog_get_font_name ##### -->
75 <!-- ##### FUNCTION gtk_font_selection_dialog_set_font_name ##### -->
77 Sets the currently-selected font.
80 @fsd: a #GtkFontSelectionDialog.
81 @fontname: a fontname.
82 @Returns: %TRUE if the font was found.
85 <!-- ##### FUNCTION gtk_font_selection_dialog_get_preview_text ##### -->
87 Gets the text displayed in the preview area.
90 @fsd: a #GtkFontSelectionDialog.
91 @Returns: the text displayed in the preview area. This string is owned
92 by the widget and should not be modified or freed.
95 <!-- ##### FUNCTION gtk_font_selection_dialog_set_preview_text ##### -->
97 Sets the text displayed in the preview area.
100 @fsd: a #GtkFontSelectionDialog.
101 @text: the text to display in the preview area.