diff options
author | Chris Toshok <toshok@ximian.com> | 2002-11-15 10:18:33 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2002-11-15 10:18:33 +0800 |
commit | 555aa35da24b6977073379c71f1bbb27ac36d86c (patch) | |
tree | a9f5d20ff7d894cb537d9bd06a433fc7e633a360 /widgets/misc/e-selection-model-simple.c | |
parent | 273f7a811a3336a1ed8decae5521f365ea86d5e1 (diff) | |
download | gsoc2013-evolution-555aa35da24b6977073379c71f1bbb27ac36d86c.tar gsoc2013-evolution-555aa35da24b6977073379c71f1bbb27ac36d86c.tar.gz gsoc2013-evolution-555aa35da24b6977073379c71f1bbb27ac36d86c.tar.bz2 gsoc2013-evolution-555aa35da24b6977073379c71f1bbb27ac36d86c.tar.lz gsoc2013-evolution-555aa35da24b6977073379c71f1bbb27ac36d86c.tar.xz gsoc2013-evolution-555aa35da24b6977073379c71f1bbb27ac36d86c.tar.zst gsoc2013-evolution-555aa35da24b6977073379c71f1bbb27ac36d86c.zip |
this derives from GObject now.
2002-11-14 Chris Toshok <toshok@ximian.com>
* gal/widgets/e-selection-model.[ch]: this derives from GObject now.
* gal/widgets/e-selection-model-simple.[ch]: same.
* gal/widgets/e-selection-model-array.[ch]: same.
* gal/widgets/e-reflow-model.[ch]: same.
* gal/widgets/e-reflow.c: fix all references to EReflowModel such
that it's a GObject, not a GtkObject.
svn path=/trunk/; revision=18772
Diffstat (limited to 'widgets/misc/e-selection-model-simple.c')
-rw-r--r-- | widgets/misc/e-selection-model-simple.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/widgets/misc/e-selection-model-simple.c b/widgets/misc/e-selection-model-simple.c index cd9a720e5c..da232d9f8c 100644 --- a/widgets/misc/e-selection-model-simple.c +++ b/widgets/misc/e-selection-model-simple.c @@ -26,8 +26,6 @@ #include "e-selection-model-array.h" #include "e-selection-model-simple.h" -#define ESMS_CLASS(e) ((ESelectionModelSimpleClass *)((GtkObject *)e)->klass) - #define PARENT_TYPE e_selection_model_array_get_type () static ESelectionModelArray *parent_class; @@ -45,7 +43,7 @@ e_selection_model_simple_class_init (ESelectionModelSimpleClass *klass) { ESelectionModelArrayClass *esma_class; - parent_class = gtk_type_class (PARENT_TYPE); + parent_class = g_type_class_ref (PARENT_TYPE); esma_class = E_SELECTION_MODEL_ARRAY_CLASS(klass); @@ -65,7 +63,7 @@ E_MAKE_TYPE(e_selection_model_simple, "ESelectionModelSimple", ESelectionModelSi ESelectionModelSimple * e_selection_model_simple_new (void) { - return gtk_type_new (e_selection_model_simple_get_type ()); + return g_object_new (E_SELECTION_MODEL_SIMPLE_TYPE, NULL); } void |