diff options
author | Michael Meeks <michael@ximian.com> | 2001-10-05 07:52:20 +0800 |
---|---|---|
committer | Michael Meeks <mmeeks@src.gnome.org> | 2001-10-05 07:52:20 +0800 |
commit | c5f392ca0e8b878206a012da11522125e1d86342 (patch) | |
tree | 233134ebda3829cd036db9b66214cf8bd7415ef2 /widgets/text/e-text-model.c | |
parent | 911659c6341a5376af81e7298219c0287c851ecc (diff) | |
download | gsoc2013-evolution-c5f392ca0e8b878206a012da11522125e1d86342.tar.gz gsoc2013-evolution-c5f392ca0e8b878206a012da11522125e1d86342.tar.zst gsoc2013-evolution-c5f392ca0e8b878206a012da11522125e1d86342.zip |
add E_OBJECT_CLASS_ADD_SIGNALS and E_OBJECT_CLASS_TYPE to ease migration
2001-10-05 Michael Meeks <michael@ximian.com>
* gal/util/e-util.h: add E_OBJECT_CLASS_ADD_SIGNALS and
E_OBJECT_CLASS_TYPE to ease migration to Gnome 2.0 from
a single source base.
* All C files:
s/object_class->type,/E_OBJECT_CLASS_TYPE (object_class),/g;
s/gtk_object_class_add_signals([^\(]*)\(([^,]*),([^,]*),([^\)]*)/
E_OBJECT_CLASS_ADD_SIGNALS\1(\2,\3,\4/;
svn path=/trunk/; revision=13428
Diffstat (limited to 'widgets/text/e-text-model.c')
-rw-r--r-- | widgets/text/e-text-model.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/widgets/text/e-text-model.c b/widgets/text/e-text-model.c index af67def74e..97eb2a9a86 100644 --- a/widgets/text/e-text-model.c +++ b/widgets/text/e-text-model.c @@ -24,6 +24,7 @@ #include <gtk/gtksignal.h> #include "e-text-model-repos.h" #include "e-text-model.h" +#include "gal/util/e-util.h" #define CLASS(obj) (E_TEXT_MODEL_CLASS (GTK_OBJECT (obj)->klass)) @@ -105,7 +106,7 @@ e_text_model_class_init (ETextModelClass *klass) e_text_model_signals[E_TEXT_MODEL_CHANGED] = gtk_signal_new ("changed", GTK_RUN_LAST, - object_class->type, + E_OBJECT_CLASS_TYPE (object_class), GTK_SIGNAL_OFFSET (ETextModelClass, changed), gtk_marshal_NONE__NONE, GTK_TYPE_NONE, 0); @@ -113,7 +114,7 @@ e_text_model_class_init (ETextModelClass *klass) e_text_model_signals[E_TEXT_MODEL_REPOSITION] = gtk_signal_new ("reposition", GTK_RUN_LAST, - object_class->type, + E_OBJECT_CLASS_TYPE (object_class), GTK_SIGNAL_OFFSET (ETextModelClass, reposition), gtk_marshal_NONE__POINTER_POINTER, GTK_TYPE_NONE, 2, @@ -122,7 +123,7 @@ e_text_model_class_init (ETextModelClass *klass) e_text_model_signals[E_TEXT_MODEL_OBJECT_ACTIVATED] = gtk_signal_new ("object_activated", GTK_RUN_LAST, - object_class->type, + E_OBJECT_CLASS_TYPE (object_class), GTK_SIGNAL_OFFSET (ETextModelClass, object_activated), gtk_marshal_NONE__INT, GTK_TYPE_NONE, 1, @@ -131,12 +132,12 @@ e_text_model_class_init (ETextModelClass *klass) e_text_model_signals[E_TEXT_MODEL_CANCEL_COMPLETION] = gtk_signal_new ("cancel_completion", GTK_RUN_LAST, - object_class->type, + E_OBJECT_CLASS_TYPE (object_class), GTK_SIGNAL_OFFSET (ETextModelClass, cancel_completion), gtk_marshal_NONE__NONE, GTK_TYPE_NONE, 0); - gtk_object_class_add_signals (object_class, e_text_model_signals, E_TEXT_MODEL_LAST_SIGNAL); + E_OBJECT_CLASS_ADD_SIGNALS (object_class, e_text_model_signals, E_TEXT_MODEL_LAST_SIGNAL); /* No default signal handlers. */ klass->changed = NULL; |