1 /* gdict-app.h - main application class
2  *
3  * This file is part of GNOME Dictionary
4  *
5  * Copyright (C) 2005 Emmanuele Bassi
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License as
9  * published by the Free Software Foundation; either version 2 of
10  * the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef __GDICT_APP_H__
22 #define __GDICT_APP_H__
23 
24 #include <gtk/gtk.h>
25 #include "gdict.h"
26 #include "gdict-window.h"
27 
28 G_BEGIN_DECLS
29 
30 #define GDICT_TYPE_APP		(gdict_app_get_type ())
31 #define GDICT_APP(obj)		(G_TYPE_CHECK_INSTANCE_CAST ((obj), GDICT_TYPE_APP, GdictApp))
32 #define GDICT_IS_APP(obj)	(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDICT_TYPE_APP))
33 
34 typedef struct _GdictApp         GdictApp;
35 typedef struct _GdictAppClass    GdictAppClass;
36 
37 struct _GdictApp
38 {
39   GtkApplication parent_instance;
40 
41   GdictSourceLoader *loader;
42 };
43 
44 struct _GdictAppClass
45 {
46   GtkApplicationClass parent_class;
47 };
48 
49 GType gdict_app_get_type (void) G_GNUC_CONST;
50 
51 GApplication *gdict_app_new (void);
52 
53 G_END_DECLS
54 
55 #endif /* __GDICT_APP_H__ */
56