From f2eec7a2f49ce7b7dda18f92d0026cecf2a033d1 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 3 Oct 2000 13:03:13 +0000 Subject: Mouse down captures now optional. --- gtk/PlatGTK.cxx | 4 +++- gtk/ScintillaGTK.cxx | 10 ++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) (limited to 'gtk') diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index 5276d75f2..d0c298685 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -867,8 +867,10 @@ void Platform::DebugPrintf(const char *, ...) { // Not supported for GTK+ static bool assertionPopUps = true; -void Platform::ShowAssertionPopUps(bool assertionPopUps_) { +bool Platform::ShowAssertionPopUps(bool assertionPopUps_) { + bool ret = assertionPopUps; assertionPopUps = assertionPopUps_; + return ret; } void Platform::Assert(const char *c, const char *file, int line) { diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index 83ba91798..34d3e2289 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -473,10 +473,12 @@ void ScintillaGTK::SetTicking(bool on) { } void ScintillaGTK::SetMouseCapture(bool on) { - if (on) { - gtk_grab_add(GTK_WIDGET(wDraw.GetID())); - } else { - gtk_grab_remove(GTK_WIDGET(wDraw.GetID())); + if (mouseDownCaptures) { + if (on) { + gtk_grab_add(GTK_WIDGET(wDraw.GetID())); + } else { + gtk_grab_remove(GTK_WIDGET(wDraw.GetID())); + } } capturedMouse = on; } -- cgit v1.2.3