aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/menus/gal-view-etable.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/menus/gal-view-etable.c')
-rw-r--r--widgets/menus/gal-view-etable.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/widgets/menus/gal-view-etable.c b/widgets/menus/gal-view-etable.c
index f35d94e5db..6a7576c311 100644
--- a/widgets/menus/gal-view-etable.c
+++ b/widgets/menus/gal-view-etable.c
@@ -27,9 +27,7 @@
#include "gal-view-etable.h"
-#define PARENT_TYPE GAL_VIEW_TYPE
-
-static GalViewClass *gal_view_etable_parent_class;
+G_DEFINE_TYPE (GalViewEtable, gal_view_etable, GAL_VIEW_TYPE)
static void
detach_table (GalViewEtable *view)
@@ -163,10 +161,10 @@ gal_view_etable_dispose (GObject *object)
}
static void
-gal_view_etable_class_init (GObjectClass *object_class)
+gal_view_etable_class_init (GalViewEtableClass *klass)
{
- GalViewClass *gal_view_class = GAL_VIEW_CLASS(object_class);
- gal_view_etable_parent_class = g_type_class_ref (PARENT_TYPE);
+ GalViewClass *gal_view_class = GAL_VIEW_CLASS (klass);
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
gal_view_class->edit = gal_view_etable_edit ;
gal_view_class->load = gal_view_etable_load ;
@@ -187,8 +185,6 @@ gal_view_etable_init (GalViewEtable *gve)
gve->title = NULL;
}
-E_MAKE_TYPE(gal_view_etable, "GalViewEtable", GalViewEtable, gal_view_etable_class_init, gal_view_etable_init, PARENT_TYPE)
-
/**
* gal_view_etable_new
* @spec: The ETableSpecification that this view will be based upon.