diff options
author | Matthias Clasen <mclasen@redhat.com> | 2011-08-14 22:20:00 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-08-15 18:57:57 -0400 |
commit | a09ee203ec1c0aa63b57ca7d1a87c228996b9999 (patch) | |
tree | ecc87b9e5283cd78ed282bdb78609e6f24e04f0e /gtk/gtkfontchooser.h | |
parent | ba564088c3bd56d836c7e48f3323e3cba389c808 (diff) | |
download | gtk+-a09ee203ec1c0aa63b57ca7d1a87c228996b9999.tar.gz |
Add filtering to the font chooser
Diffstat (limited to 'gtk/gtkfontchooser.h')
-rw-r--r-- | gtk/gtkfontchooser.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gtk/gtkfontchooser.h b/gtk/gtkfontchooser.h index 62cabd720d..d346837e7b 100644 --- a/gtk/gtkfontchooser.h +++ b/gtk/gtkfontchooser.h @@ -81,6 +81,26 @@ gboolean gtk_font_chooser_get_show_preview_entry (GtkFontChooser *fontchoo void gtk_font_chooser_set_show_preview_entry (GtkFontChooser *fontchooser, gboolean show_preview_entry); +/** + * GtkFontFilterFunc: + * @family: a #PangoFontFamily + * @face: a #PangoFontFace belonging to @family + * @data (closure): user data passed to gtk_font_chooser_set_filter_func() + * + * The type of function that is used for deciding what fonts get + * shown in a #GtkFontChooser. See gtk_font_chooser_set_filter_func(). + * + * Returns: %TRUE if the font should be displayed + */ +typedef gboolean (*GtkFontFilterFunc) (const PangoFontFamily *family, + const PangoFontFace *face, + gpointer data); + +void gtk_font_chooser_set_filter_func (GtkFontChooser *fontchooser, + GtkFontFilterFunc filter, + gpointer data, + GDestroyNotify destroy); + G_END_DECLS #endif /* __GTK_FONT_CHOOSER_H__ */ |