aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/misc/e-cursors.c11
-rw-r--r--widgets/misc/e-cursors.h11
2 files changed, 18 insertions, 4 deletions
diff --git a/widgets/misc/e-cursors.c b/widgets/misc/e-cursors.c
index 2111d16d3b..4927277833 100644
--- a/widgets/misc/e-cursors.c
+++ b/widgets/misc/e-cursors.c
@@ -13,6 +13,13 @@ typedef struct {
extern GnumericCursorDef gnumeric_cursors [];
-void cursors_init (void);
-void cursors_shutdown (void);
+void cursors_init (void);
+void cursors_shutdown (void);
+
+#define cursor_set(win,c) \
+ gdk_window_set_cursor (win, gnumeric_cursors [c].cursor)
+
+#define cursor_set_widget(w,c) \
+ gdk_window_set_cursor (GTK_WIDGET (w)->window, gnumeric_cursors [c].cursor)
+
#endif
diff --git a/widgets/misc/e-cursors.h b/widgets/misc/e-cursors.h
index 2111d16d3b..4927277833 100644
--- a/widgets/misc/e-cursors.h
+++ b/widgets/misc/e-cursors.h
@@ -13,6 +13,13 @@ typedef struct {
extern GnumericCursorDef gnumeric_cursors [];
-void cursors_init (void);
-void cursors_shutdown (void);
+void cursors_init (void);
+void cursors_shutdown (void);
+
+#define cursor_set(win,c) \
+ gdk_window_set_cursor (win, gnumeric_cursors [c].cursor)
+
+#define cursor_set_widget(w,c) \
+ gdk_window_set_cursor (GTK_WIDGET (w)->window, gnumeric_cursors [c].cursor)
+
#endif