[Libreoffice-commits] core.git: vcl/unx

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Jul 18 20:13:01 UTC 2018


 vcl/unx/gtk3/gtk3gtkinst.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit f48d1cf923231cbfcd663c5f97657d04073793b5
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Jul 18 16:33:34 2018 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Jul 18 22:12:37 2018 +0200

    Resolves: tdf#118802 map GTK_RESPONSE_DELETE_EVENT to RET_CANCEL
    
    Change-Id: I8285f329e4672c90f47d96ccffe60c21c565dde7
    Reviewed-on: https://gerrit.libreoffice.org/57655
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index 2a524619e480..2041f6d90f12 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -2031,6 +2031,8 @@ private:
             ret = RET_OK;
         else if (ret == GTK_RESPONSE_CANCEL)
             ret = RET_CANCEL;
+        else if (ret == GTK_RESPONSE_DELETE_EVENT)
+            ret = RET_CANCEL;
         else if (ret == GTK_RESPONSE_CLOSE)
             ret = RET_CLOSE;
         else if (ret == GTK_RESPONSE_YES)


More information about the Libreoffice-commits mailing list