aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/menus/gal-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/menus/gal-view.c')
-rw-r--r--widgets/menus/gal-view.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/widgets/menus/gal-view.c b/widgets/menus/gal-view.c
index 36c325aefd..30b9a683f3 100644
--- a/widgets/menus/gal-view.c
+++ b/widgets/menus/gal-view.c
@@ -27,15 +27,13 @@
#include "gal-view.h"
-#define PARENT_TYPE G_TYPE_OBJECT
+G_DEFINE_TYPE (GalView, gal_view, G_TYPE_OBJECT)
#define d(x)
d(static gint depth = 0;)
-static GObjectClass *gal_view_parent_class;
-
enum {
CHANGED,
LAST_SIGNAL
@@ -177,11 +175,10 @@ gal_view_changed (GalView *view)
}
static void
-gal_view_class_init (GObjectClass *object_class)
+gal_view_class_init (GalViewClass *klass)
{
- GalViewClass *klass = GAL_VIEW_CLASS(object_class);
- gal_view_parent_class = g_type_class_ref (PARENT_TYPE);
-
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+
klass->edit = NULL;
klass->load = NULL;
klass->save = NULL;
@@ -205,4 +202,3 @@ gal_view_init (GalView *view)
{
}
-E_MAKE_TYPE(gal_view, "GalView", GalView, gal_view_class_init, gal_view_init, PARENT_TYPE)