aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-text-event-processor.c
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/e-text-event-processor.c')
-rw-r--r--e-util/e-text-event-processor.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/e-util/e-text-event-processor.c b/e-util/e-text-event-processor.c
index c5dc27cc7d..9f9ca211d2 100644
--- a/e-util/e-text-event-processor.c
+++ b/e-util/e-text-event-processor.c
@@ -41,9 +41,6 @@ static void e_text_event_processor_get_property (GObject *object,
GValue *value,
GParamSpec *pspec);
-#define PARENT_TYPE G_TYPE_OBJECT
-static GObjectClass *parent_class = NULL;
-
/* The arguments we take */
enum {
PROP_0,
@@ -57,12 +54,7 @@ enum {
static guint e_tep_signals[E_TEP_LAST_SIGNAL] = { 0 };
-E_MAKE_TYPE (e_text_event_processor,
- "ETextEventProcessor",
- ETextEventProcessor,
- e_text_event_processor_class_init,
- e_text_event_processor_init,
- PARENT_TYPE)
+G_DEFINE_TYPE (ETextEventProcessor, e_text_event_processor, G_TYPE_OBJECT)
static void
e_text_event_processor_class_init (ETextEventProcessorClass *klass)
@@ -71,8 +63,6 @@ e_text_event_processor_class_init (ETextEventProcessorClass *klass)
object_class = (GObjectClass*) klass;
- parent_class = g_type_class_ref (PARENT_TYPE);
-
object_class->set_property = e_text_event_processor_set_property;
object_class->get_property = e_text_event_processor_get_property;