preferences.c preferences.h \
error.c error.h \
player.c player.h \
- app.c app.h
+ app.c app.h \
+ browser.c browser.h
chimara_CPPFLAGS = $(AM_CPPFLAGS) \
-DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
-DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
--- /dev/null
+#include <glib-object.h>
+#include <gtk/gtk.h>
+#include "browser.h"
+
+typedef struct _ChimaraBrowserPrivate {
+ int dummy;
+} ChimaraBrowserPrivate;
+
+#define CHIMARA_BROWSER_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE((o), CHIMARA_TYPE_BROWSER, ChimaraBrowserPrivate))
+#define CHIMARA_BROWSER_USE_PRIVATE ChimaraBrowserPrivate *priv = CHIMARA_BROWSER_PRIVATE(self)
+
+G_DEFINE_TYPE(ChimaraBrowser, chimara_browser, GTK_TYPE_WINDOW);
+
+static void
+chimara_browser_finalize(GObject *self)
+{
+ /* Chain up */
+ G_OBJECT_CLASS(chimara_browser_parent_class)->finalize(self);
+}
+
+static void
+chimara_browser_class_init(ChimaraBrowserClass *klass)
+{
+ /* Override methods of parent classes */
+ GObjectClass *object_class = G_OBJECT_CLASS(klass);
+ //object_class->set_property = chimara_if_set_property;
+ //object_class->get_property = chimara_if_get_property;
+ object_class->finalize = chimara_browser_finalize;
+
+ /* Signals */
+
+ /* Properties */
+
+ /* Private data */
+ g_type_class_add_private(klass, sizeof(ChimaraBrowserPrivate));
+}
+
+static void
+chimara_browser_init(ChimaraBrowser *self)
+{
+}
+
+/* PUBLIC FUNCTIONS */
+ChimaraBrowser *
+chimara_browser_new(void)
+{
+ return CHIMARA_BROWSER(g_object_new(CHIMARA_TYPE_BROWSER, NULL));
+}
+
--- /dev/null
+#ifndef __BROWSER_H__
+#define __BROWSER_H__
+
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+G_BEGIN_DECLS
+
+#define CHIMARA_TYPE_BROWSER (chimara_browser_get_type())
+#define CHIMARA_BROWSER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), CHIMARA_TYPE_BROWSER, ChimaraBrowser))
+#define CHIMARA_BROWSER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), CHIMARA_TYPE_BROWSER, ChimaraBrowserClass))
+#define CHIMARA_IS_BROWSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), CHIMARA_TYPE_BROWSER))
+#define CHIMARA_IS_BROWSER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), CHIMARA_TYPE_BROWSER))
+#define CHIMARA_BROWSER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), CHIMARA_TYPE_BROWSER, ChimaraBrowserClass))
+
+typedef struct _ChimaraBrowser {
+ GtkWindow parent_instance;
+
+ /* Public pointers */
+} ChimaraBrowser;
+
+typedef struct _ChimaraBrowserClass {
+ GtkWindowClass parent_class;
+} ChimaraBrowserClass;
+
+GType chimara_browser_get_type(void) G_GNUC_CONST;
+ChimaraBrowser *chimara_browser_new(void);
+
+G_END_DECLS
+
+#endif /* __BROWSER_H__ */