8dfadf401184620bb2ce31c43dacddc863dae5e6
[projects/chimara/chimara.git] / player / browser.c
1 #include <glib-object.h>
2 #include <gtk/gtk.h>
3 #include "browser.h"
4
5 typedef struct _ChimaraBrowserPrivate {
6         int dummy;
7 } ChimaraBrowserPrivate;
8
9 #define CHIMARA_BROWSER_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE((o), CHIMARA_TYPE_BROWSER, ChimaraBrowserPrivate))
10 #define CHIMARA_BROWSER_USE_PRIVATE ChimaraBrowserPrivate *priv = CHIMARA_BROWSER_PRIVATE(self)
11
12 G_DEFINE_TYPE(ChimaraBrowser, chimara_browser, GTK_TYPE_WINDOW);
13
14 static void
15 chimara_browser_finalize(GObject *self)
16 {
17         /* Chain up */
18         G_OBJECT_CLASS(chimara_browser_parent_class)->finalize(self);
19 }
20
21 static void
22 chimara_browser_class_init(ChimaraBrowserClass *klass)
23 {
24         /* Override methods of parent classes */
25         GObjectClass *object_class = G_OBJECT_CLASS(klass);
26         //object_class->set_property = chimara_if_set_property;
27         //object_class->get_property = chimara_if_get_property;
28         object_class->finalize = chimara_browser_finalize;
29         
30         /* Signals */
31
32         /* Properties */
33
34         /* Private data */
35         g_type_class_add_private(klass, sizeof(ChimaraBrowserPrivate));
36 }
37
38 static void
39 chimara_browser_init(ChimaraBrowser *self)
40 {
41 }
42
43 /* PUBLIC FUNCTIONS */
44 ChimaraBrowser *
45 chimara_browser_new(void)
46 {
47         return CHIMARA_BROWSER(g_object_new(CHIMARA_TYPE_BROWSER, NULL));
48 }
49