diff options
author | Miguel de Icaza <miguel@src.gnome.org> | 2000-03-31 12:49:36 +0800 |
---|---|---|
committer | Miguel de Icaza <miguel@src.gnome.org> | 2000-03-31 12:49:36 +0800 |
commit | bf794358e25773ec43a6f3dbb98cd019779e0e2f (patch) | |
tree | 2df8920b3b7313f391d9629b298a883a5f66c1f4 /widgets/table/e-table-sort-info.c | |
parent | 394ae06d04f2840da08ba63cc6b7e3d9657046b7 (diff) | |
download | gsoc2013-evolution-bf794358e25773ec43a6f3dbb98cd019779e0e2f.tar gsoc2013-evolution-bf794358e25773ec43a6f3dbb98cd019779e0e2f.tar.gz gsoc2013-evolution-bf794358e25773ec43a6f3dbb98cd019779e0e2f.tar.bz2 gsoc2013-evolution-bf794358e25773ec43a6f3dbb98cd019779e0e2f.tar.lz gsoc2013-evolution-bf794358e25773ec43a6f3dbb98cd019779e0e2f.tar.xz gsoc2013-evolution-bf794358e25773ec43a6f3dbb98cd019779e0e2f.tar.zst gsoc2013-evolution-bf794358e25773ec43a6f3dbb98cd019779e0e2f.zip |
More work
svn path=/trunk/; revision=2266
Diffstat (limited to 'widgets/table/e-table-sort-info.c')
-rw-r--r-- | widgets/table/e-table-sort-info.c | 30 |
1 files changed, 4 insertions, 26 deletions
diff --git a/widgets/table/e-table-sort-info.c b/widgets/table/e-table-sort-info.c index 9e8d6e8228..bf90a13602 100644 --- a/widgets/table/e-table-sort-info.c +++ b/widgets/table/e-table-sort-info.c @@ -11,10 +11,11 @@ #include <gtk/gtksignal.h> #include <gnome-xml/tree.h> #include "e-table-sort-info.h" +#include "e-util/e-util.h" #define ETM_CLASS(e) ((ETableSortInfoClass *)((GtkObject *)e)->klass) -#define PARENT_TYPE gtk_object_get_type (); +#define PARENT_TYPE gtk_object_get_type () static GtkObjectClass *e_table_sort_info_parent_class; @@ -81,31 +82,8 @@ e_table_sort_info_class_init (GtkObjectClass *object_class) GTK_ARG_READWRITE, ARG_GROUPING); } - -guint -e_table_sort_info_get_type (void) -{ - static guint type = 0; - - if (!type) - { - GtkTypeInfo info = - { - "ETableSortInfo", - sizeof (ETableSortInfo), - sizeof (ETableSortInfoClass), - (GtkClassInitFunc) e_table_sort_info_class_init, - NULL, - /* reserved_1 */ NULL, - /* reserved_2 */ NULL, - (GtkClassInitFunc) NULL, - }; - - type = gtk_type_unique (gtk_object_get_type (), &info); - } - - return type; -} +E_MAKE_TYPE(e_table_sort_info, "ETableSortInfo", ETableSortInfo, + e_table_sort_info_class_init, NULL, PARENT_TYPE); void e_table_sort_info_changed (ETableSortInfo *e_table_sort_info) |