diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-06-18 23:54:15 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-06-19 08:32:06 +0800 |
commit | 78c9f356f97f0b40cbd3ad730b8931f75d0649a2 (patch) | |
tree | c2cef75d392b1deae3cfc44c3d6bb7b43c417d70 /e-util/e-table-model.h | |
parent | c6ccd45a0ef07b12a0313deb3abee032d89eec0a (diff) | |
download | gsoc2013-evolution-78c9f356f97f0b40cbd3ad730b8931f75d0649a2.tar gsoc2013-evolution-78c9f356f97f0b40cbd3ad730b8931f75d0649a2.tar.gz gsoc2013-evolution-78c9f356f97f0b40cbd3ad730b8931f75d0649a2.tar.bz2 gsoc2013-evolution-78c9f356f97f0b40cbd3ad730b8931f75d0649a2.tar.lz gsoc2013-evolution-78c9f356f97f0b40cbd3ad730b8931f75d0649a2.tar.xz gsoc2013-evolution-78c9f356f97f0b40cbd3ad730b8931f75d0649a2.tar.zst gsoc2013-evolution-78c9f356f97f0b40cbd3ad730b8931f75d0649a2.zip |
Convert ETableModel to an interface.
Similar to what was recently done to ETreeModel.
Diffstat (limited to 'e-util/e-table-model.h')
-rw-r--r-- | e-util/e-table-model.h | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/e-util/e-table-model.h b/e-util/e-table-model.h index 60fc11c53c..99f53b15c1 100644 --- a/e-util/e-table-model.h +++ b/e-util/e-table-model.h @@ -31,30 +31,20 @@ #define E_TABLE_MODEL(obj) \ (G_TYPE_CHECK_INSTANCE_CAST \ ((obj), E_TYPE_TABLE_MODEL, ETableModel)) -#define E_TABLE_MODEL_CLASS(cls) \ - (G_TYPE_CHECK_CLASS_CAST \ - ((cls), E_TYPE_TABLE_MODEL, ETableModelClass)) #define E_IS_TABLE_MODEL(obj) \ (G_TYPE_CHECK_INSTANCE_TYPE \ ((obj), E_TYPE_TABLE_MODEL)) -#define E_IS_TABLE_MODEL_CLASS(cls) \ - (G_TYPE_CHECK_CLASS_TYPE \ - ((cls), E_TYPE_TABLE_MODEL)) -#define E_TABLE_MODEL_GET_CLASS(obj) \ - (G_TYPE_INSTANCE_GET_CLASS \ - ((obj), E_TYPE_TABLE_MODEL, ETableModelClass)) +#define E_TABLE_MODEL_GET_INTERFACE(obj) \ + (G_TYPE_INSTANCE_GET_INTERFACE \ + ((obj), E_TYPE_TABLE_MODEL, ETableModelInterface)) G_BEGIN_DECLS typedef struct _ETableModel ETableModel; -typedef struct _ETableModelClass ETableModelClass; +typedef struct _ETableModelInterface ETableModelInterface; -struct _ETableModel { - GObject parent; -}; - -struct _ETableModelClass { - GObjectClass parent_class; +struct _ETableModelInterface { + GTypeInterface parent_interface; gint (*column_count) (ETableModel *table_model); gint (*row_count) (ETableModel *table_model); |