|  |  |  | GNOME UI Library Reference Manual |  | 
|---|---|---|---|---|
#include <libgnomeui/libgnomeui.h> enum GnomeFontPickerMode; GnomeFontPickerPrivate; GnomeFontPicker; GtkWidget* gnome_font_picker_new (void); void gnome_font_picker_set_title (GnomeFontPicker *gfp, const gchar *title); const gchar* gnome_font_picker_get_title (GnomeFontPicker *gfp); GnomeFontPickerMode gnome_font_picker_get_mode (GnomeFontPicker *gfp); void gnome_font_picker_set_mode (GnomeFontPicker *gfp, GnomeFontPickerMode mode); void gnome_font_picker_fi_set_use_font_in_label (GnomeFontPicker *gfp, gboolean use_font_in_label, gint size); void gnome_font_picker_fi_set_show_size (GnomeFontPicker *gfp, gboolean show_size); void gnome_font_picker_uw_set_widget (GnomeFontPicker *gfp, GtkWidget *widget); GtkWidget* gnome_font_picker_uw_get_widget (GnomeFontPicker *gfp); const gchar* gnome_font_picker_get_font_name (GnomeFontPicker *gfp); GdkFont* gnome_font_picker_get_font (GnomeFontPicker *gfp); gboolean gnome_font_picker_set_font_name (GnomeFontPicker *gfp, const gchar *fontname); const gchar* gnome_font_picker_get_preview_text (GnomeFontPicker *gfp); void gnome_font_picker_set_preview_text (GnomeFontPicker *gfp, const gchar *text);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkButton +----GnomeFontPicker
"font" gpointer : Read "font-name" gchar* : Read / Write "label-font-size" gint : Read / Write "mode" GnomeFontPickerMode : Read / Write "preview-text" gchar* : Read / Write "show-size" gboolean : Read / Write "title" gchar* : Read / Write "use-font-in-label" gboolean : Read / Write
typedef enum {
    GNOME_FONT_PICKER_MODE_PIXMAP,
    GNOME_FONT_PICKER_MODE_FONT_INFO,
    GNOME_FONT_PICKER_MODE_USER_WIDGET,
    GNOME_FONT_PICKER_MODE_UNKNOWN
} GnomeFontPickerMode;
GnomeFontPickerMode is deprecated and should not be used in newly-written code.
typedef struct _GnomeFontPickerPrivate GnomeFontPickerPrivate;
GnomeFontPickerPrivate is deprecated and should not be used in newly-written code.
typedef struct _GnomeFontPicker GnomeFontPicker;
GnomeFontPicker is deprecated and should not be used in newly-written code.
GtkWidget* gnome_font_picker_new (void);
gnome_font_picker_new is deprecated and should not be used in newly-written code.
Create new font picker widget.
| Returns : | Pointer to new font picker widget. | 
void gnome_font_picker_set_title (GnomeFontPicker *gfp, const gchar *title);
gnome_font_picker_set_title is deprecated and should not be used in newly-written code.
Sets the title for the font selection dialog.  If title is NULL,
then the default is used.
| 
 | Pointer to GNOME font picker widget. | 
| 
 | String containing font selection dialog title. | 
const gchar* gnome_font_picker_get_title (GnomeFontPicker *gfp);
gnome_font_picker_get_title is deprecated and should not be used in newly-written code.
Retrieve name of the font selection dialog title
| 
 | Pointer to GNOME font picker widget. | 
| Returns : | Pointer to an internal copy of the title string | 
GnomeFontPickerMode gnome_font_picker_get_mode (GnomeFontPicker *gfp);
gnome_font_picker_get_mode is deprecated and should not be used in newly-written code.
Returns current font picker button mode (or what to show).  Possible
values include GNOME_FONT_PICKER_MODE_PIXMAP,
GNOME_FONT_PICKER_MODE_FONT_INFO, and
GNOME_FONT_PICKER_MODE_USER_WIDGET.
| 
 | Pointer to GNOME font picker widget. | 
| Returns : | Button mode currently set in font picker widget, or GNOME_FONT_PICKER_MODE_UNKNOWNon error. | 
void gnome_font_picker_set_mode (GnomeFontPicker *gfp, GnomeFontPickerMode mode);
gnome_font_picker_set_mode is deprecated and should not be used in newly-written code.
Set value of subsequent font picker button mode (or what to show).
| 
 | Pointer to GNOME font picker widget. | 
| 
 | Value of subsequent font picker button mode (or what to show) | 
void                gnome_font_picker_fi_set_use_font_in_label
                                                        (GnomeFontPicker *gfp,
                                                         gboolean use_font_in_label,
                                                         gint size);
gnome_font_picker_fi_set_use_font_in_label is deprecated and should not be used in newly-written code.
If use_font_in_label is TRUE, font name will be written using font chosen
by user and using size passed to this function.  This only applies if
current button mode is GNOME_FONT_PICKER_MODE_FONT_INFO.
| 
 | Pointer to GNOME font picker widget. | 
| 
 | If TRUE, font name will be written using font chosen. | 
| 
 | Display font using this point size. | 
void gnome_font_picker_fi_set_show_size (GnomeFontPicker *gfp, gboolean show_size);
gnome_font_picker_fi_set_show_size is deprecated and should not be used in newly-written code.
If show_size is TRUE, font size will be displayed along with font chosen
by user.  This only applies if current button mode is
GNOME_FONT_PICKER_MODE_FONT_INFO.
| 
 | Pointer to GNOME font picker widget. | 
| 
 | TRUEif font size should be displayed in dialog. | 
void gnome_font_picker_uw_set_widget (GnomeFontPicker *gfp, GtkWidget *widget);
gnome_font_picker_uw_set_widget is deprecated and should not be used in newly-written code.
Set the user-supplied widget as the inside of the font picker.
This only applies with GNOME_FONT_PICKER_MODE_USER_WIDGET.
| 
 | Pointer to GNOME font picker widget. | 
| 
 | User widget to display for inside of font picker. | 
GtkWidget* gnome_font_picker_uw_get_widget (GnomeFontPicker *gfp);
gnome_font_picker_uw_get_widget is deprecated and should not be used in newly-written code.
Get the user-supplied widget inside of the font picker. This only applies with GNOME_FONT_PICKER_MODE_USER_WIDGET.
const gchar* gnome_font_picker_get_font_name (GnomeFontPicker *gfp);
gnome_font_picker_get_font_name is deprecated and should not be used in newly-written code.
Retrieve name of font from font selection dialog.
| 
 | Pointer to GNOME font picker widget. | 
| Returns : | Pointer to an internal copy of the font name. | 
GdkFont* gnome_font_picker_get_font (GnomeFontPicker *gfp);
gnome_font_picker_get_font is deprecated and should not be used in newly-written code.
Retrieve font info from font selection dialog.
| 
 | Pointer to GNOME font picker widget. | 
| Returns : | Return value of gtk_font_selection_dialog_get_font, or NULLif
font dialog is not being displayed.  The value is not a copy but
an internal value and should not be modified. | 
gboolean gnome_font_picker_set_font_name (GnomeFontPicker *gfp, const gchar *fontname);
gnome_font_picker_set_font_name is deprecated and should not be used in newly-written code.
Set or update currently-displayed font in font picker dialog.
| 
 | Pointer to GNOME font picker widget. | 
| 
 | Name of font to display in font selection dialog | 
| Returns : | Return value of gtk_font_selection_dialog_set_font_name if the
font selection dialog exists, otherwise FALSE. | 
const gchar* gnome_font_picker_get_preview_text (GnomeFontPicker *gfp);
gnome_font_picker_get_preview_text is deprecated and should not be used in newly-written code.
Retrieve preview text from font selection dialog if available.
| 
 | Pointer to GNOME font picker widget. | 
| Returns : | Reference to internal copy of preview text string, or NULLif no
font dialog is being displayed. | 
void gnome_font_picker_set_preview_text (GnomeFontPicker *gfp, const gchar *text);
gnome_font_picker_set_preview_text is deprecated and should not be used in newly-written code.
Set preview text in font picker, and in font selection dialog if one is being displayed.
| 
 | Pointer to GNOME font picker widget. | 
| 
 | New preview text | 
"font-name" property"font-name" gchar* : Read / Write
Name of the selected font.
Default value: "sans 12"
"label-font-size" property"label-font-size" gint : Read / Write
Font size for label in font info mode.
Allowed values: [8,72]
Default value: 14
"mode" property"mode" GnomeFontPickerMode : Read / Write
The mode of operation of the font picker.
Default value: GNOME_FONT_PICKER_MODE_PIXMAP
"preview-text" property"preview-text" gchar* : Read / Write
Preview text shown in the dialog.
Default value: "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz"
"show-size" property"show-size" gboolean : Read / Write
Show size in font info mode.
Default value: TRUE
"title" property"title" gchar* : Read / Write
The title of the selection dialog box.
Default value: "Pick a Font"
"use-font-in-label" property"use-font-in-label" gboolean : Read / Write
Use font in the label in font info mode.
Default value: FALSE
"font-set" signalvoid user_function (GnomeFontPicker *fontpicker, gchar *arg1, gpointer user_data) : Run First
| 
 | the object which received the signal. | 
| 
 | |
| 
 | user data set when the signal handler was connected. |