aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-cell-popup.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-popup.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-popup.h')
-rw-r--r--widgets/table/e-cell-popup.h83
1 files changed, 51 insertions, 32 deletions
diff --git a/widgets/table/e-cell-popup.h b/widgets/table/e-cell-popup.h
index 99b9bd8fb6..6d04fb3c8d 100644
--- a/widgets/table/e-cell-popup.h
+++ b/widgets/table/e-cell-popup.h
@@ -35,60 +35,79 @@
#include <libgnomecanvas/libgnomecanvas.h>
#include <table/e-cell.h>
-#define E_CELL_POPUP_TYPE (e_cell_popup_get_type ())
-#define E_CELL_POPUP(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), E_CELL_POPUP_TYPE, ECellPopup))
-#define E_CELL_POPUP_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), E_CELL_POPUP_TYPE, ECellPopupClass))
-#define E_IS_CELL_POPUP(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), E_CELL_POPUP_TYPE))
-#define E_IS_CELL_POPUP_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), E_CELL_POPUP_TYPE))
-
+/* Standard GObject macros */
+#define E_TYPE_CELL_POPUP \
+ (e_cell_popup_get_type ())
+#define E_CELL_POPUP(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST \
+ ((obj), E_TYPE_CELL_POPUP, ECellPopup))
+#define E_CELL_POPUP_CLASS(cls) \
+ (G_TYPE_CHECK_CLASS_CAST \
+ ((cls), E_TYPE_CELL_POPUP, ECellPopupClass))
+#define E_IS_CELL_POPUP(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE \
+ ((obj), E_TYPE_CELL_POPUP))
+#define E_IS_CELL_POPUP_CLASS(cls) \
+ (G_TYPE_CHECK_CLASS_TYPE \
+ ((cls), E_TYPE_CELL_POPUP))
+#define E_CELL_POPUP_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS \
+ ((obj), E_TYPE_CELL_POPUP, ECellPopupClass))
+
+G_BEGIN_DECLS
+
+typedef struct _ECellPopup ECellPopup;
typedef struct _ECellPopupView ECellPopupView;
+typedef struct _ECellPopupClass ECellPopupClass;
-typedef struct {
+struct _ECellPopup {
ECell parent;
ECell *child;
/* This is TRUE if the popup window is shown for the cell being
edited. While shown we display the arrow indented. */
- gboolean popup_shown;
+ gboolean popup_shown;
/* This is TRUE if the popup arrow is shown for the cell being edited.
This is needed to stop the first click on the cell from popping up
the popup window. We only popup the window after we have drawn the
arrow. */
- gboolean popup_arrow_shown;
+ gboolean popup_arrow_shown;
/* The view in which the popup is shown. */
- ECellPopupView *popup_cell_view;
-
- gint popup_view_col;
- gint popup_row;
- ETableModel *popup_model;
-} ECellPopup;
+ ECellPopupView *popup_cell_view;
-typedef struct {
- ECellClass parent_class;
-
- /* Virtual function for subclasses to override. */
- gint (*popup) (ECellPopup *ecp, GdkEvent *event, gint row, gint view_col);
-} ECellPopupClass;
+ gint popup_view_col;
+ gint popup_row;
+ ETableModel *popup_model;
+};
struct _ECellPopupView {
- ECellView cell_view;
+ ECellView cell_view;
- ECellView *child_view;
+ ECellView *child_view;
};
-GType e_cell_popup_get_type (void);
-ECell *e_cell_popup_new (void);
+struct _ECellPopupClass {
+ ECellClass parent_class;
+
+ /* Virtual function for subclasses to override. */
+ gint (*popup) (ECellPopup *ecp,
+ GdkEvent *event,
+ gint row,
+ gint view_col);
+};
-/* Get and set the child ECell. */
-ECell *e_cell_popup_get_child (ECellPopup *ecp);
-void e_cell_popup_set_child (ECellPopup *ecp,
- ECell *child);
+GType e_cell_popup_get_type (void) G_GNUC_CONST;
+ECell * e_cell_popup_new (void);
+ECell * e_cell_popup_get_child (ECellPopup *ecp);
+void e_cell_popup_set_child (ECellPopup *ecp,
+ ECell *child);
+void e_cell_popup_set_shown (ECellPopup *ecp,
+ gboolean shown);
+void e_cell_popup_queue_cell_redraw (ECellPopup *ecp);
-void e_cell_popup_set_shown (ECellPopup *ecp,
- gboolean shown);
-void e_cell_popup_queue_cell_redraw (ECellPopup *ecp);
+G_END_DECLS
#endif /* _E_CELL_POPUP_H_ */