6a22cc017c02be4ffa64c4bc7a20cd8abc97d095
[projects/chimara/chimara.git] / player / app.h
1 #ifndef __APP_H__
2 #define __APP_H__
3
4 #include <glib-object.h>
5 #include <gtk/gtk.h>
6
7 G_BEGIN_DECLS
8
9 #define CHIMARA_TYPE_APP            (chimara_app_get_type())
10 #define CHIMARA_APP(obj)            (G_TYPE_CHECK_INSTANCE_CAST((obj), CHIMARA_TYPE_APP, ChimaraApp))
11 #define CHIMARA_APP_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST((klass), CHIMARA_TYPE_APP, ChimaraAppClass))
12 #define CHIMARA_IS_APP(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj), CHIMARA_TYPE_APP))
13 #define CHIMARA_IS_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), CHIMARA_TYPE_APP))
14 #define CHIMARA_APP_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj), CHIMARA_TYPE_APP, ChimaraAppClass))
15
16 typedef struct _ChimaraApp {
17         GObject parent_instance;
18         
19         /* Public pointers */
20         GtkWidget *browser_window;
21         GtkWidget *aboutwindow;
22         GtkWidget *prefswindow;
23         /* Public settings */
24         GSettings *prefs_settings;
25         GSettings *state_settings;
26 } ChimaraApp;
27
28 typedef struct _ChimaraAppClass {
29         GObjectClass parent_class;
30 } ChimaraAppClass;
31
32 GType chimara_app_get_type(void) G_GNUC_CONST;
33 ChimaraApp *chimara_app_get(void);
34 GtkActionGroup *chimara_app_get_action_group(ChimaraApp *self);
35
36 G_END_DECLS
37
38 #endif /* __APP_H__ */