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/menus | |
parent | 911659c6341a5376af81e7298219c0287c851ecc (diff) | |
download | gsoc2013-evolution-c5f392ca0e8b878206a012da11522125e1d86342.tar gsoc2013-evolution-c5f392ca0e8b878206a012da11522125e1d86342.tar.gz gsoc2013-evolution-c5f392ca0e8b878206a012da11522125e1d86342.tar.bz2 gsoc2013-evolution-c5f392ca0e8b878206a012da11522125e1d86342.tar.lz gsoc2013-evolution-c5f392ca0e8b878206a012da11522125e1d86342.tar.xz 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/menus')
-rw-r--r-- | widgets/menus/gal-view-collection.c | 6 | ||||
-rw-r--r-- | widgets/menus/gal-view.c | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/widgets/menus/gal-view-collection.c b/widgets/menus/gal-view-collection.c index 2503a4cc79..447b9a0728 100644 --- a/widgets/menus/gal-view-collection.c +++ b/widgets/menus/gal-view-collection.c @@ -109,7 +109,7 @@ gal_view_collection_class_init (GtkObjectClass *object_class) gal_view_collection_signals [DISPLAY_VIEW] = gtk_signal_new ("display_view", GTK_RUN_LAST, - object_class->type, + E_OBJECT_CLASS_TYPE (object_class), GTK_SIGNAL_OFFSET (GalViewCollectionClass, display_view), gtk_marshal_NONE__OBJECT, GTK_TYPE_NONE, 1, GAL_VIEW_TYPE); @@ -117,12 +117,12 @@ gal_view_collection_class_init (GtkObjectClass *object_class) gal_view_collection_signals [CHANGED] = gtk_signal_new ("changed", GTK_RUN_LAST, - object_class->type, + E_OBJECT_CLASS_TYPE (object_class), GTK_SIGNAL_OFFSET (GalViewCollectionClass, changed), gtk_marshal_NONE__NONE, GTK_TYPE_NONE, 0); - gtk_object_class_add_signals (object_class, gal_view_collection_signals, LAST_SIGNAL); + E_OBJECT_CLASS_ADD_SIGNALS (object_class, gal_view_collection_signals, LAST_SIGNAL); klass->display_view = NULL; klass->changed = NULL; diff --git a/widgets/menus/gal-view.c b/widgets/menus/gal-view.c index f48a6f0026..3f89cbb517 100644 --- a/widgets/menus/gal-view.c +++ b/widgets/menus/gal-view.c @@ -10,6 +10,7 @@ #include <config.h> #include <gtk/gtksignal.h> #include "gal-view.h" +#include "gal/util/e-util.h" #define GV_CLASS(e) ((GalViewClass *)((GtkObject *)e)->klass) @@ -176,12 +177,12 @@ gal_view_class_init (GtkObjectClass *object_class) gal_view_signals [CHANGED] = gtk_signal_new ("changed", GTK_RUN_LAST, - object_class->type, + E_OBJECT_CLASS_TYPE (object_class), GTK_SIGNAL_OFFSET (GalViewClass, changed), gtk_marshal_NONE__NONE, GTK_TYPE_NONE, 0); - gtk_object_class_add_signals (object_class, gal_view_signals, LAST_SIGNAL); + E_OBJECT_CLASS_ADD_SIGNALS (object_class, gal_view_signals, LAST_SIGNAL); } GtkType |