diff options
author | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2006-03-19 17:49:32 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2006-03-19 17:49:32 +0000 |
commit | 35bb5f96d5daedc961ea887b58bd839b13e8e740 (patch) | |
tree | d2f442004dc1627dabb8d0598a6f0c789b321333 /gtk | |
parent | 63c65c680850f5f891ecb281432195d06204e223 (diff) | |
download | netsurf-35bb5f96d5daedc961ea887b58bd839b13e8e740.tar.gz netsurf-35bb5f96d5daedc961ea887b58bd839b13e8e740.tar.bz2 |
[project @ 2006-03-19 17:49:32 by dsilvers]
Add support for a few more CSS cursors and tidy the GUI_POINTER_* stuff to support what we already had
svn path=/import/netsurf/; revision=2135
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtk_window.c | 40 |
1 files changed, 33 insertions, 7 deletions
diff --git a/gtk/gtk_window.c b/gtk/gtk_window.c index b0a242580..a3c247f18 100644 --- a/gtk/gtk_window.c +++ b/gtk/gtk_window.c @@ -374,17 +374,29 @@ void gui_window_set_pointer(struct gui_window *g, gui_pointer_shape shape) case GUI_POINTER_CARET: cursortype = GDK_XTERM; break; - case GUI_POINTER_UD: - cursortype = GDK_SB_V_DOUBLE_ARROW; + case GUI_POINTER_UP: + cursortype = GDK_TOP_SIDE; break; - case GUI_POINTER_LR: - cursortype = GDK_SB_H_DOUBLE_ARROW; + case GUI_POINTER_DOWN: + cursortype = GDK_BOTTOM_SIDE; + break; + case GUI_POINTER_LEFT: + cursortype = GDK_LEFT_SIDE; + break; + case GUI_POINTER_RIGHT: + cursortype = GDK_RIGHT_SIDE; break; case GUI_POINTER_LD: - cursortype = GDK_SIZING; /* XXX */ + cursortype = GDK_BOTTOM_LEFT_CORNER; break; case GUI_POINTER_RD: - cursortype = GDK_SIZING; /* XXX */ + cursortype = GDK_BOTTOM_RIGHT_CORNER; + break; + case GUI_POINTER_LU: + cursortype = GDK_TOP_LEFT_CORNER; + break; + case GUI_POINTER_RU: + cursortype = GDK_TOP_RIGHT_CORNER; break; case GUI_POINTER_CROSS: cursortype = GDK_CROSS; @@ -392,8 +404,22 @@ void gui_window_set_pointer(struct gui_window *g, gui_pointer_shape shape) case GUI_POINTER_MOVE: cursortype = GDK_FLEUR; break; + case GUI_POINTER_WAIT: + cursortype = GDK_WATCH; + break; + case GUI_POINTER_HELP: + cursortype = GDK_QUESTION_ARROW; + break; case GUI_POINTER_MENU: - /* Cannot think of a good cursor for 'menu' yet */ + cursortype = GDK_RIGHTBUTTON; + break; + case GUI_POINTER_PROGRESS: + /* In reality, this needs to be the funky left_ptr_watch which we can't do easily yet */ + cursortype = GDK_WATCH; + break; + /* The following we're not sure about */ + case GUI_POINTER_NO_DROP: + case GUI_POINTER_NOT_ALLOWED: case GUI_POINTER_DEFAULT: default: nullcursor = true; |