aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-cell-hbox.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-01-17 02:24:31 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-01-17 07:52:52 +0800
commit992c8b7d58025cf4d04ed3665210f191c8048339 (patch)
treeed04bd47c142c1a35820b03c6df8e8455d86f15c /widgets/table/e-cell-hbox.h
parent2c476af581cc64bb3de8edc726149a7d8e9677b8 (diff)
downloadgsoc2013-evolution-992c8b7d58025cf4d04ed3665210f191c8048339.tar
gsoc2013-evolution-992c8b7d58025cf4d04ed3665210f191c8048339.tar.gz
gsoc2013-evolution-992c8b7d58025cf4d04ed3665210f191c8048339.tar.bz2
gsoc2013-evolution-992c8b7d58025cf4d04ed3665210f191c8048339.tar.lz
gsoc2013-evolution-992c8b7d58025cf4d04ed3665210f191c8048339.tar.xz
gsoc2013-evolution-992c8b7d58025cf4d04ed3665210f191c8048339.tar.zst
gsoc2013-evolution-992c8b7d58025cf4d04ed3665210f191c8048339.zip
libetable cleanups.
Diffstat (limited to 'widgets/table/e-cell-hbox.h')
-rw-r--r--widgets/table/e-cell-hbox.h68
1 files changed, 43 insertions, 25 deletions
diff --git a/widgets/table/e-cell-hbox.h b/widgets/table/e-cell-hbox.h
index 42b1c60e61..41cc01e6a1 100644
--- a/widgets/table/e-cell-hbox.h
+++ b/widgets/table/e-cell-hbox.h
@@ -27,41 +27,59 @@
#include <libgnomecanvas/libgnomecanvas.h>
#include <table/e-cell.h>
+/* Standard GObject macros */
+#define E_TYPE_CELL_HBOX \
+ (e_cell_hbox_get_type ())
+#define E_CELL_HBOX(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST \
+ ((obj), E_TYPE_CELL_HBOX, ECellHbox))
+#define E_CELL_HBOX_CLASS(cls) \
+ (G_TYPE_CHECK_CLASS_CAST \
+ ((cls), E_TYPE_CELL_HBOX, ECellHboxClass))
+#define E_IS_CELL_HBOX(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE \
+ ((obj), E_TYPE_CELL_HBOX))
+#define E_IS_CELL_HBOX_CLASS(cls) \
+ (G_TYPE_CHECK_CLASS_TYPE \
+ ((cls), E_TYPE_CELL_HBOX))
+#define E_CELL_HBOX_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS \
+ ((obj), E_TYPE_CELL_HBOX, ECellHboxClass))
+
G_BEGIN_DECLS
-#define E_CELL_HBOX_TYPE (e_cell_hbox_get_type ())
-#define E_CELL_HBOX(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), E_CELL_HBOX_TYPE, ECellHbox))
-#define E_CELL_HBOX_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), E_CELL_HBOX_TYPE, ECellHboxClass))
-#define E_IS_CELL_HBOX(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), E_CELL_HBOX_TYPE))
-#define E_IS_CELL_HBOX_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), E_CELL_HBOX_TYPE))
+typedef struct _ECellHbox ECellHbox;
+typedef struct _ECellHboxView ECellHboxView;
+typedef struct _ECellHboxClass ECellHboxClass;
-typedef struct {
+struct _ECellHbox {
ECell parent;
- gint subcell_count;
+ gint subcell_count;
ECell **subcells;
- gint *model_cols;
- gint *def_size_cols;
-} ECellHbox;
+ gint *model_cols;
+ gint *def_size_cols;
+};
+
+struct _ECellHboxView {
+ ECellView cell_view;
-typedef struct {
- ECellView cell_view;
- gint subcell_view_count;
- ECellView **subcell_views;
- gint *model_cols;
- gint *def_size_cols;
-} ECellHboxView;
+ gint subcell_view_count;
+ ECellView **subcell_views;
+ gint *model_cols;
+ gint *def_size_cols;
+};
-typedef struct {
+struct _ECellHboxClass {
ECellClass parent_class;
-} ECellHboxClass;
+};
-GType e_cell_hbox_get_type (void);
-ECell *e_cell_hbox_new (void);
-void e_cell_hbox_append (ECellHbox *vbox,
- ECell *subcell,
- gint model_col,
- gint size);
+GType e_cell_hbox_get_type (void) G_GNUC_CONST;
+ECell * e_cell_hbox_new (void);
+void e_cell_hbox_append (ECellHbox *vbox,
+ ECell *subcell,
+ gint model_col,
+ gint size);
G_END_DECLS