summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-02-19 09:04:04 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-02-19 14:45:19 +0100
commit8ed356fb69e024218538c4818ea6ad46799b2c68 (patch)
tree0eee31d0ff5ce77b43c030b7c31079eae5a1ccba
parent60f1490af9b29ac2df8e9e9411e9d41b472f9113 (diff)
reserve negative responses for internal responses
Change-Id: Iecf7d25340ff751c2984e27fdd303d2162472344 Reviewed-on: https://gerrit.libreoffice.org/49971 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--include/svtools/fileview.hxx2
-rw-r--r--svtools/uiconfig/ui/querydeletedialog.ui4
-rw-r--r--uui/source/sslwarndlg.cxx2
-rw-r--r--uui/uiconfig/ui/sslwarndialog.ui2
4 files changed, 5 insertions, 5 deletions
diff --git a/include/svtools/fileview.hxx b/include/svtools/fileview.hxx
index 8e1d14df36fc..617dd1853612 100644
--- a/include/svtools/fileview.hxx
+++ b/include/svtools/fileview.hxx
@@ -206,7 +206,7 @@ namespace svtools {
enum QueryDeleteResult_Impl
{
QUERYDELETE_YES = RET_YES,
- QUERYDELETE_ALL = -1
+ QUERYDELETE_ALL = 101
};
class SVT_DLLPUBLIC QueryDeleteDlg_Impl : public MessageDialog
diff --git a/svtools/uiconfig/ui/querydeletedialog.ui b/svtools/uiconfig/ui/querydeletedialog.ui
index 1168f0da5091..de2e3d102235 100644
--- a/svtools/uiconfig/ui/querydeletedialog.ui
+++ b/svtools/uiconfig/ui/querydeletedialog.ui
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- Generated with glade 3.18.3 -->
+<!-- Generated with glade 3.20.2 -->
<interface domain="svt">
<requires lib="gtk+" version="3.0"/>
<object class="GtkMessageDialog" id="QueryDeleteDialog">
@@ -92,7 +92,7 @@
</child>
<action-widgets>
<action-widget response="2">yes</action-widget>
- <action-widget response="-1">all</action-widget>
+ <action-widget response="101">all</action-widget>
<action-widget response="3">no</action-widget>
<action-widget response="0">cancel</action-widget>
</action-widgets>
diff --git a/uui/source/sslwarndlg.cxx b/uui/source/sslwarndlg.cxx
index b85e376ff291..f88284a70610 100644
--- a/uui/source/sslwarndlg.cxx
+++ b/uui/source/sslwarndlg.cxx
@@ -50,7 +50,7 @@ void SSLWarnDialog::response(short nResponseId)
{
switch (nResponseId)
{
- case -1:
+ case 101:
ViewCert();
break;
default:
diff --git a/uui/uiconfig/ui/sslwarndialog.ui b/uui/uiconfig/ui/sslwarndialog.ui
index e93112399ac0..2a3d857816a3 100644
--- a/uui/uiconfig/ui/sslwarndialog.ui
+++ b/uui/uiconfig/ui/sslwarndialog.ui
@@ -75,7 +75,7 @@
<action-widgets>
<action-widget response="1">ok</action-widget>
<action-widget response="0">cancel</action-widget>
- <action-widget response="-1">view</action-widget>
+ <action-widget response="101">view</action-widget>
</action-widgets>
</object>
</interface>