diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-06-21 03:58:05 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-06-21 04:10:21 +0800 |
commit | ad6b3f483d22a00070f60b69855e72563d9895ea (patch) | |
tree | 4960461d2c5e97acfada5efc01326f2ea2223898 /e-util/e-sorter.h | |
parent | 6ebf6c215536efffe70633aed7f7f4b832eaec2f (diff) | |
download | gsoc2013-evolution-ad6b3f483d22a00070f60b69855e72563d9895ea.tar gsoc2013-evolution-ad6b3f483d22a00070f60b69855e72563d9895ea.tar.gz gsoc2013-evolution-ad6b3f483d22a00070f60b69855e72563d9895ea.tar.bz2 gsoc2013-evolution-ad6b3f483d22a00070f60b69855e72563d9895ea.tar.lz gsoc2013-evolution-ad6b3f483d22a00070f60b69855e72563d9895ea.tar.xz gsoc2013-evolution-ad6b3f483d22a00070f60b69855e72563d9895ea.tar.zst gsoc2013-evolution-ad6b3f483d22a00070f60b69855e72563d9895ea.zip |
Convert ESorter to an interface.
Diffstat (limited to 'e-util/e-sorter.h')
-rw-r--r-- | e-util/e-sorter.h | 29 |
1 files changed, 7 insertions, 22 deletions
diff --git a/e-util/e-sorter.h b/e-util/e-sorter.h index 4ab5e8420a..70060302be 100644 --- a/e-util/e-sorter.h +++ b/e-util/e-sorter.h @@ -1,4 +1,5 @@ /* + * e-sorter.h * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -13,12 +14,6 @@ * You should have received a copy of the GNU Lesser General Public * License along with the program; if not, see <http://www.gnu.org/licenses/> * - * - * Authors: - * Chris Lahey <clahey@ximian.com> - * - * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) - * */ #if !defined (__E_UTIL_H_INSIDE__) && !defined (LIBEUTIL_COMPILATION) @@ -36,30 +31,20 @@ #define E_SORTER(obj) \ (G_TYPE_CHECK_INSTANCE_CAST \ ((obj), E_TYPE_SORTER, ESorter)) -#define E_SORTER_CLASS(cls) \ - (G_TYPE_CHECK_CLASS_CAST \ - ((cls), E_TYPE_SORTER, ESorterClass)) #define E_IS_SORTER(obj) \ (G_TYPE_CHECK_INSTANCE_TYPE \ ((obj), E_TYPE_SORTER)) -#define E_IS_SORTER_CLASS(cls) \ - (G_TYPE_CHECK_CLASS_TYPE \ - ((cls), E_TYPE_SORTER)) -#define E_SORTER_GET_CLASS(obj) \ - (G_TYPE_INSTANCE_GET_CLASS \ - ((obj), E_TYPE_SORTER, ESorterClass)) +#define E_SORTER_GET_INTERFACE(obj) \ + (G_TYPE_INSTANCE_GET_INTERFACE \ + ((obj), E_TYPE_SORTER, ESorterInterface)) G_BEGIN_DECLS typedef struct _ESorter ESorter; -typedef struct _ESorterClass ESorterClass; - -struct _ESorter { - GObject parent; -}; +typedef struct _ESorterInterface ESorterInterface; -struct _ESorterClass { - GObjectClass parent_class; +struct _ESorterInterface { + GTypeInterface parent_interface; gint (*model_to_sorted) (ESorter *sorter, gint row); |