aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
Diffstat (limited to 'e-util')
-rw-r--r--e-util/e-text-event-processor.c5
-rw-r--r--e-util/e-util.h10
2 files changed, 13 insertions, 2 deletions
diff --git a/e-util/e-text-event-processor.c b/e-util/e-text-event-processor.c
index 6449b23463..466eb07888 100644
--- a/e-util/e-text-event-processor.c
+++ b/e-util/e-text-event-processor.c
@@ -20,6 +20,7 @@
*/
#include "e-text-event-processor.h"
+#include <gal/util/e-util.h>
#include <gtk/gtksignal.h>
static void e_text_event_processor_init (ETextEventProcessor *card);
@@ -80,13 +81,13 @@ e_text_event_processor_class_init (ETextEventProcessorClass *klass)
e_tep_signals[E_TEP_EVENT] =
gtk_signal_new ("command",
GTK_RUN_LAST,
- object_class->type,
+ E_OBJECT_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (ETextEventProcessorClass, command),
gtk_marshal_NONE__POINTER,
GTK_TYPE_NONE, 1,
GTK_TYPE_POINTER);
- gtk_object_class_add_signals (object_class, e_tep_signals, E_TEP_LAST_SIGNAL);
+ E_OBJECT_CLASS_ADD_SIGNALS (object_class, e_tep_signals, E_TEP_LAST_SIGNAL);
gtk_object_add_arg_type ("ETextEventProcessor::allow_newlines", GTK_TYPE_BOOL,
GTK_ARG_READWRITE, ARG_ALLOW_NEWLINES);
diff --git a/e-util/e-util.h b/e-util/e-util.h
index 22b96a376a..179a2c2788 100644
--- a/e-util/e-util.h
+++ b/e-util/e-util.h
@@ -52,6 +52,16 @@ GtkType l##_get_type(void)\
return type;\
}
+#if 1
+# define E_OBJECT_CLASS_ADD_SIGNALS(oc,sigs,last) \
+ gtk_object_class_add_signals (oc, sigs, last)
+# define E_OBJECT_CLASS_TYPE(oc) (oc)->type
+#else
+# define E_OBJECT_CLASS_ADD_SIGNALS(oc,sigs,last)
+# define E_OBJECT_CLASS_TYPE(oc) G_TYPE_FROM_CLASS (oc)
+#endif
+
+
typedef enum {
E_FOCUS_NONE,
E_FOCUS_CURRENT,