1 #include <glib-object.h>
5 typedef struct _ChimaraBrowserPrivate {
7 } ChimaraBrowserPrivate;
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)
12 G_DEFINE_TYPE(ChimaraBrowser, chimara_browser, GTK_TYPE_WINDOW);
15 chimara_browser_finalize(GObject *self)
18 G_OBJECT_CLASS(chimara_browser_parent_class)->finalize(self);
22 chimara_browser_class_init(ChimaraBrowserClass *klass)
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;
35 g_type_class_add_private(klass, sizeof(ChimaraBrowserPrivate));
39 chimara_browser_init(ChimaraBrowser *self)
43 /* PUBLIC FUNCTIONS */
45 chimara_browser_new(void)
47 return CHIMARA_BROWSER(g_object_new(CHIMARA_TYPE_BROWSER, NULL));