diff options
author | nyamatongwe <unknown> | 2003-02-08 02:30:08 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2003-02-08 02:30:08 +0000 |
commit | 55504132fba2ac41b1cec653dace6aaf31aa697e (patch) | |
tree | f9064b421f5b4f20d195be2630f7f3fedf07fe26 | |
parent | 280e5700e6d6a12970f696c5388877aecea50a14 (diff) | |
download | scintilla-mirror-55504132fba2ac41b1cec653dace6aaf31aa697e.tar.gz |
Chose arrow cursors more similar to Windows.
-rw-r--r-- | gtk/PlatGTK.cxx | 11 | ||||
-rw-r--r-- | gtk/ScintillaGTK.cxx | 4 |
2 files changed, 7 insertions, 8 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index 9724c38bb..e85cf004c 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -1223,20 +1223,19 @@ void Window::SetFont(Font &) { } void Window::SetCursor(Cursor curs) { - GdkCursor *gdkCurs; - // We don't set the cursor to same value numerous times under gtk because // it stores the cursor in the window once it's set if (curs == cursorLast) return; - cursorLast = curs; + cursorLast = curs; + GdkCursor *gdkCurs; switch (curs) { case cursorText: gdkCurs = gdk_cursor_new(GDK_XTERM); break; case cursorArrow: - gdkCurs = gdk_cursor_new(GDK_ARROW); + gdkCurs = gdk_cursor_new(GDK_LEFT_PTR); break; case cursorUp: gdkCurs = gdk_cursor_new(GDK_CENTER_PTR); @@ -1245,10 +1244,10 @@ void Window::SetCursor(Cursor curs) { gdkCurs = gdk_cursor_new(GDK_WATCH); break; case cursorReverseArrow: - gdkCurs = gdk_cursor_new(GDK_TOP_LEFT_ARROW); + gdkCurs = gdk_cursor_new(GDK_RIGHT_PTR); break; default: - gdkCurs = gdk_cursor_new(GDK_ARROW); + gdkCurs = gdk_cursor_new(GDK_LEFT_PTR); cursorLast = cursorArrow; break; } diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index 7f73b5723..ef4d5b0e3 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -389,8 +389,8 @@ void ScintillaGTK::MapThis() { GTK_WIDGET_SET_FLAGS(PWidget(wMain), GTK_MAPPED); MapWidget(PWidget(scrollbarh)); MapWidget(PWidget(scrollbarv)); - scrollbarv.SetCursor(Window::cursorReverseArrow); - scrollbarh.SetCursor(Window::cursorReverseArrow); + scrollbarv.SetCursor(Window::cursorArrow); + scrollbarh.SetCursor(Window::cursorArrow); gdk_window_show(PWidget(wMain)->window); } |