]> Pileus Git - ~andy/gtk/blob - gtk/gtkfontchooserutils.h
dc9fdff0c61b089ce895e1bc061adfab1d4bbed3
[~andy/gtk] / gtk / gtkfontchooserutils.h
1 /* gtkfontchooserutils.h - Private utility functions for implementing a
2  *                           GtkFontChooser interface
3  *
4  * Copyright (C) 2006 Emmanuele Bassi
5  *
6  * All rights reserved
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Library General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Library General Public License for more details.
17  *
18  * You should have received a copy of the GNU Library General Public
19  * License along with this library; if not, write to the
20  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21  * Boston, MA 02111-1307, USA.
22  *
23  * Based on gtkfilechooserutils.h:
24  *      Copyright (C) 2003 Red Hat, Inc.
25  */
26  
27 #ifndef __GTK_FONT_CHOOSER_UTILS_H__
28 #define __GTK_FONT_CHOOSER_UTILS_H__
29
30 #include "gtkfontchooserprivate.h"
31
32 G_BEGIN_DECLS
33
34 #define GTK_FONT_CHOOSER_DELEGATE_QUARK (_gtk_font_chooser_delegate_get_quark ())
35
36 typedef enum {
37   GTK_FONT_CHOOSER_PROP_FIRST           = 0x4000,
38   GTK_FONT_CHOOSER_PROP_FONT,
39   GTK_FONT_CHOOSER_PROP_FONT_DESC,
40   GTK_FONT_CHOOSER_PROP_PREVIEW_TEXT,
41   GTK_FONT_CHOOSER_PROP_SHOW_PREVIEW_ENTRY,
42   GTK_FONT_CHOOSER_PROP_LAST
43 } GtkFontChooserProp;
44
45 void   _gtk_font_chooser_install_properties  (GObjectClass          *klass);
46 void   _gtk_font_chooser_delegate_iface_init (GtkFontChooserIface *iface);
47 void   _gtk_font_chooser_set_delegate        (GtkFontChooser      *receiver,
48                                               GtkFontChooser      *delegate);
49
50 GQuark _gtk_font_chooser_delegate_get_quark  (void) G_GNUC_CONST;
51
52 G_END_DECLS
53
54 #endif /* __GTK_FONT_CHOOSER_UTILS_H__ */