diff options
| author | Neil <nyamatongwe@gmail.com> | 2021-03-17 16:02:45 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2021-03-17 16:02:45 +1100 |
| commit | d5b1240eece116b2a13b635d25b041bf0de19305 (patch) | |
| tree | 477c8b5c2bf07db996f5520957a447ee256eacf8 /gtk | |
| parent | f0861077dfa88fd1e2846b164701eca5de63c292 (diff) | |
| download | scintilla-mirror-d5b1240eece116b2a13b635d25b041bf0de19305.tar.gz | |
Change Window::Cursor to an enum class.
Diffstat (limited to 'gtk')
| -rwxr-xr-x | gtk/PlatGTK.cxx | 14 | ||||
| -rwxr-xr-x | gtk/ScintillaGTK.cxx | 6 |
2 files changed, 10 insertions, 10 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index 9fe312121..95cc9e509 100755 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -1078,27 +1078,27 @@ void Window::SetCursor(Cursor curs) { GdkCursor *gdkCurs; switch (curs) { - case cursorText: + case Cursor::text: gdkCurs = gdk_cursor_new_for_display(pdisplay, GDK_XTERM); break; - case cursorArrow: + case Cursor::arrow: gdkCurs = gdk_cursor_new_for_display(pdisplay, GDK_LEFT_PTR); break; - case cursorUp: + case Cursor::up: gdkCurs = gdk_cursor_new_for_display(pdisplay, GDK_CENTER_PTR); break; - case cursorWait: + case Cursor::wait: gdkCurs = gdk_cursor_new_for_display(pdisplay, GDK_WATCH); break; - case cursorHand: + case Cursor::hand: gdkCurs = gdk_cursor_new_for_display(pdisplay, GDK_HAND2); break; - case cursorReverseArrow: + case Cursor::reverseArrow: gdkCurs = gdk_cursor_new_for_display(pdisplay, GDK_RIGHT_PTR); break; default: gdkCurs = gdk_cursor_new_for_display(pdisplay, GDK_LEFT_PTR); - cursorLast = cursorArrow; + cursorLast = Cursor::arrow; break; } diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index 5373f3ea6..5fd8bac89 100755 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -347,9 +347,9 @@ void ScintillaGTK::MapThis() { MapWidget(PWidget(wText)); MapWidget(PWidget(scrollbarh)); MapWidget(PWidget(scrollbarv)); - wMain.SetCursor(Window::cursorArrow); - scrollbarv.SetCursor(Window::cursorArrow); - scrollbarh.SetCursor(Window::cursorArrow); + wMain.SetCursor(Window::Cursor::arrow); + scrollbarv.SetCursor(Window::Cursor::arrow); + scrollbarh.SetCursor(Window::Cursor::arrow); ChangeSize(); gdk_window_show(PWindow(wMain)); } catch (...) { |
