From 8d5c52e66ba588676298e206c1667899df611398 Mon Sep 17 00:00:00 2001 From: Arturo Espinosa Date: Wed, 16 Sep 1998 08:22:56 +0000 Subject: Autofill lists work: Autofill lists work: Integers, Floats, Formulas and constant strings works. Todo: Lists of known strings and strings with numbers embedded Miguel. svn path=/trunk/; revision=379 --- widgets/misc/e-cursors.c | 11 +++++++++-- widgets/misc/e-cursors.h | 11 +++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) (limited to 'widgets/misc') 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 -- cgit v1.2.3