aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-extras.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-12-28 13:25:30 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-01-03 12:22:36 +0800
commit3cfd5d640908b6441769341c764de70006262c6e (patch)
tree2408c4dd513de0576a0daae9833aff7f740a52e7 /widgets/table/e-table-extras.h
parent7a979aeb79ee095e2d002c240d17888618279e08 (diff)
downloadgsoc2013-evolution-3cfd5d640908b6441769341c764de70006262c6e.tar.gz
gsoc2013-evolution-3cfd5d640908b6441769341c764de70006262c6e.tar.zst
gsoc2013-evolution-3cfd5d640908b6441769341c764de70006262c6e.zip
ETableExtras cleanup.
Diffstat (limited to 'widgets/table/e-table-extras.h')
-rw-r--r--widgets/table/e-table-extras.h94
1 files changed, 53 insertions, 41 deletions
diff --git a/widgets/table/e-table-extras.h b/widgets/table/e-table-extras.h
index 794cf4635e..b01af32b32 100644
--- a/widgets/table/e-table-extras.h
+++ b/widgets/table/e-table-extras.h
@@ -21,62 +21,74 @@
*
*/
-#ifndef _E_TABLE_EXTRAS_H_
-#define _E_TABLE_EXTRAS_H_
+#ifndef E_TABLE_EXTRAS_H
+#define E_TABLE_EXTRAS_H
-#include <glib-object.h>
#include <table/e-cell.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
+#define E_TYPE_TABLE_EXTRAS \
+ (e_table_extras_get_type ())
+#define E_TABLE_EXTRAS(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST \
+ ((obj), E_TYPE_TABLE_EXTRAS, ETableExtras))
+#define E_TABLE_EXTRAS_CLASS(cls) \
+ (G_TYPE_CHECK_CLASS_CAST \
+ ((cls), E_TYPE_TABLE_EXTRAS, ETableExtrasClass))
+#define E_IS_TABLE_EXTRAS(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE \
+ ((obj), E_TYPE_TABLE_EXTRAS))
+#define E_IS_TABLE_EXTRAS_CLASS(cls) \
+ (G_TYPE_CHECK_CLASS_TYPE \
+ ((cls), E_TYPE_TABLE_EXTRAS))
+#define E_TABLE_EXTRAS_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS \
+ ((obj), E_TYPE_TABLE_EXTRAS, ETableExtrasClass))
+
G_BEGIN_DECLS
-#define E_TABLE_EXTRAS_TYPE (e_table_extras_get_type ())
-#define E_TABLE_EXTRAS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), E_TABLE_EXTRAS_TYPE, ETableExtras))
-#define E_TABLE_EXTRAS_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), E_TABLE_EXTRAS_TYPE, ETableExtrasClass))
-#define E_IS_TABLE_EXTRAS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), E_TABLE_EXTRAS_TYPE))
-#define E_IS_TABLE_EXTRAS_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), E_TABLE_EXTRAS_TYPE))
-#define E_TABLE_EXTRAS_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), E_TABLE_EXTRAS_TYPE, ETableExtrasClass))
+typedef struct _ETableExtras ETableExtras;
+typedef struct _ETableExtrasClass ETableExtrasClass;
+typedef struct _ETableExtrasPrivate ETableExtrasPrivate;
-typedef struct {
- GObject base;
+struct _ETableExtras {
+ GObject parent;
+ ETableExtrasPrivate *priv;
GHashTable *cells;
GHashTable *compares;
GHashTable *pixbufs;
GHashTable *searches;
-} ETableExtras;
+};
-typedef struct {
+struct _ETableExtrasClass {
GObjectClass parent_class;
-} ETableExtrasClass;
-
-GType e_table_extras_get_type (void);
-ETableExtras *e_table_extras_new (void);
-
-void e_table_extras_add_cell (ETableExtras *extras,
- const gchar *id,
- ECell *cell);
-ECell *e_table_extras_get_cell (ETableExtras *extras,
- const gchar *id);
-
-void e_table_extras_add_compare (ETableExtras *extras,
- const gchar *id,
- GCompareFunc compare);
-GCompareFunc e_table_extras_get_compare (ETableExtras *extras,
- const gchar *id);
-
-void e_table_extras_add_search (ETableExtras *extras,
- const gchar *id,
- ETableSearchFunc search);
-ETableSearchFunc e_table_extras_get_search (ETableExtras *extras,
- const gchar *id);
+};
-void e_table_extras_add_pixbuf (ETableExtras *extras,
- const gchar *id,
- GdkPixbuf *pixbuf);
-GdkPixbuf *e_table_extras_get_pixbuf (ETableExtras *extras,
- const gchar *id);
+GType e_table_extras_get_type (void);
+ETableExtras * e_table_extras_new (void);
+void e_table_extras_add_cell (ETableExtras *extras,
+ const gchar *id,
+ ECell *cell);
+ECell * e_table_extras_get_cell (ETableExtras *extras,
+ const gchar *id);
+void e_table_extras_add_compare (ETableExtras *extras,
+ const gchar *id,
+ GCompareFunc compare);
+GCompareFunc e_table_extras_get_compare (ETableExtras *extras,
+ const gchar *id);
+void e_table_extras_add_search (ETableExtras *extras,
+ const gchar *id,
+ ETableSearchFunc search);
+ETableSearchFunc
+ e_table_extras_get_search (ETableExtras *extras,
+ const gchar *id);
+void e_table_extras_add_pixbuf (ETableExtras *extras,
+ const gchar *id,
+ GdkPixbuf *pixbuf);
+GdkPixbuf * e_table_extras_get_pixbuf (ETableExtras *extras,
+ const gchar *id);
G_END_DECLS
-#endif /* _E_TABLE_EXTRAS_H_ */
+#endif /* E_TABLE_EXTRAS_H */