GtkFontButton

A button that launches a font selection dialog.
Object Hierarchy
GObject
`-- GtkObject
      `-- GtkWidget
            `-- GtkContainer
                  `-- GtkBin
                        `-- GtkButton
                              `-- GtkFontButton
Description
This button is very similar to the GtkColorButton or the GtkFileChooserButton. The two functions of this button are to display the current font selected, and to launch a font selection dialog when clicked.
When clicked the GtkFontButton, will launch a GtkFontSelectionDialog. You may set many of the dialog's properties using its methods. The button is most suitable in preference dialogs, where you need the user to select a font.
Constructors
GtkFontButton ();-- Creates a new GtkFontButton.GtkFontButton::new_with_font (string fontname);-- Create a new GtkFontButton with a preset font selected.
Methods
get_font_name() Â Retrieves the name of the font selected. get_show_size() Â Returns whether the font size is displayed on the label. get_show_style() Â Returns whether the font style is displayed on the label. get_title() Â Retrieves the title of the resulting font selection dialog. get_use_font() Â Returns whether the selected font is used by the button. get_use_size() Â Returns whether the selected font size is used by the button. set_font_name() Â Sets the font used by the button. set_show_size() Â Sets whether the font size will be shown on the button. set_show_style() Â Sets whether the font style will be shown on the button. set_title() Â Sets the title of the resulting font selection dialog. set_use_font() Â Sets whether the font button will use the selected font. set_use_size() Â Sets whether the font button will use the selected font size.
Signals
"font-set" Â Emitted when the user selects a font.