From 70fa0cb32695a4e52637d3d2071ae3f638157c41 Mon Sep 17 00:00:00 2001 From: Arturo Espinosa Date: Tue, 15 Sep 1998 04:19:56 +0000 Subject: Got cursors working. Got cursors working. Use the cursors properly on the spreadhseet (gives good feedback on what is going to happen). More work on autofill. miguel. svn path=/trunk/; revision=377 --- widgets/misc/e-cursors.c | 12 ++++++++++- widgets/misc/e-cursors.h | 12 ++++++++++- widgets/misc/pixmaps/cursor_cross.xpm | 38 +++++++++++++++++++++++++++++++++++ 3 files changed, 60 insertions(+), 2 deletions(-) create mode 100644 widgets/misc/pixmaps/cursor_cross.xpm (limited to 'widgets') diff --git a/widgets/misc/e-cursors.c b/widgets/misc/e-cursors.c index 973602e175..2111d16d3b 100644 --- a/widgets/misc/e-cursors.c +++ b/widgets/misc/e-cursors.c @@ -1,7 +1,17 @@ #ifndef CURSORS_H #define CURSORS_H -extern GdkCursor *gnumeric_cursors []; +typedef struct { + GdkCursor *cursor; + int hot_x, hot_y; + char **xpm; +} GnumericCursorDef; + +#define GNUMERIC_CURSOR_FAT_CROSS 0 +#define GNUMERIC_CURSOR_THIN_CROSS 1 +#define GNUMERIC_CURSOR_ARROW 2 + +extern GnumericCursorDef gnumeric_cursors []; void cursors_init (void); void cursors_shutdown (void); diff --git a/widgets/misc/e-cursors.h b/widgets/misc/e-cursors.h index 973602e175..2111d16d3b 100644 --- a/widgets/misc/e-cursors.h +++ b/widgets/misc/e-cursors.h @@ -1,7 +1,17 @@ #ifndef CURSORS_H #define CURSORS_H -extern GdkCursor *gnumeric_cursors []; +typedef struct { + GdkCursor *cursor; + int hot_x, hot_y; + char **xpm; +} GnumericCursorDef; + +#define GNUMERIC_CURSOR_FAT_CROSS 0 +#define GNUMERIC_CURSOR_THIN_CROSS 1 +#define GNUMERIC_CURSOR_ARROW 2 + +extern GnumericCursorDef gnumeric_cursors []; void cursors_init (void); void cursors_shutdown (void); diff --git a/widgets/misc/pixmaps/cursor_cross.xpm b/widgets/misc/pixmaps/cursor_cross.xpm new file mode 100644 index 0000000000..48f848e9ea --- /dev/null +++ b/widgets/misc/pixmaps/cursor_cross.xpm @@ -0,0 +1,38 @@ +/* XPM */ +static char * cursor_cross_xpm[] = { +"32 32 3 1", +" c None", +". c #000000", +"+ c #FFFFFF", +" ", +" ", +" ", +" ", +" ", +" ......... ", +" .+++++++.. ", +" .+++++++.. ", +" .+++++++.. ", +" .+++++++.. ", +" .+++++++.. ", +" .......+++++++........ ", +" .+++++++++++++++++++.. ", +" .+++++++++++++++++++.. ", +" .+++++++++++++++++++.. ", +" .+++++++++++++++++++.. ", +" .+++++++++++++++++++.. ", +" .+++++++++++++++++++.. ", +" .+++++++++++++++++++.. ", +" .......+++++++........ ", +" ......+++++++........ ", +" .+++++++.. ", +" .+++++++.. ", +" .+++++++.. ", +" .+++++++.. ", +" .......... ", +" ......... ", +" ", +" ", +" ", +" ", +" "}; -- cgit v1.2.3