From 0fccd1d5eed0b073eaa7da05c139cc4cf99ad943 Mon Sep 17 00:00:00 2001 From: gambas Date: Tue, 4 Jan 2022 16:09:29 +0100 Subject: [PATCH] Setting Application.Busy now displays the busy cursor correctly again. [GB.GTK] * BUG: Setting Application.Busy now displays the busy cursor correctly again. [GB.GTK3] * BUG: Setting Application.Busy now displays the busy cursor correctly again. --- gb.gtk/src/gcontrol.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/gb.gtk/src/gcontrol.cpp b/gb.gtk/src/gcontrol.cpp index b59e4b936..b750e2e99 100644 --- a/gb.gtk/src/gcontrol.cpp +++ b/gb.gtk/src/gcontrol.cpp @@ -1053,7 +1053,7 @@ GdkCursor *gControl::getGdkCursor() int m = _mouse; if (gApplication::isBusy()) - m = GDK_WATCH; + m = CURSOR_WAIT; if (m == CURSOR_CUSTOM) { @@ -1119,14 +1119,8 @@ void gControl::setMouse(int m) return; } - /*if (m == CURSOR_CUSTOM) - { - if (!curs || !curs->cur) - m = CURSOR_DEFAULT; - }*/ - + //fprintf(stderr, "setMouse: %s\n", name()); _mouse = m; - updateCursor(getGdkCursor()); }