[Libreoffice-commits] core.git: cui/uiconfig sd/source sd/uiconfig svtools/uiconfig sw/source sw/uiconfig uui/uiconfig vcl/qa
Caolán McNamara
caolanm at redhat.com
Thu Mar 1 09:04:31 UTC 2018
cui/uiconfig/ui/newtabledialog.ui | 4 ++--
cui/uiconfig/ui/splitcellsdialog.ui | 12 ++++++------
sd/source/ui/dlg/PhotoAlbumDialog.cxx | 2 +-
sd/uiconfig/simpress/ui/photoalbum.ui | 4 ++--
svtools/uiconfig/ui/placeedit.ui | 3 ++-
sw/source/ui/dbui/mmoutputtypepage.cxx | 2 +-
sw/uiconfig/swriter/ui/mmsendmails.ui | 4 ++--
sw/uiconfig/swriter/ui/signatureline.ui | 8 ++++++--
sw/uiconfig/swriter/ui/sortdialog.ui | 4 ++--
uui/uiconfig/ui/password.ui | 3 ++-
vcl/qa/cppunit/builder/demo.ui | 8 ++++----
11 files changed, 30 insertions(+), 24 deletions(-)
New commits:
commit b312c10a787b34fdc0252d0651c00edb3855d657
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Feb 28 15:54:59 2018 +0000
give ok, cancel, help buttons those names
So they can be used to sort the buttons into native ordering
(eventually).
Give them the gtk response ids, so they can be used by native
gtk3 dialog loading (eventually)
Change-Id: Ide49649b8ea6a2e0c003d23c3a88f0cb06822b05
Reviewed-on: https://gerrit.libreoffice.org/50535
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/cui/uiconfig/ui/newtabledialog.ui b/cui/uiconfig/ui/newtabledialog.ui
index e152ceee704d..3c8ed8631de4 100644
--- a/cui/uiconfig/ui/newtabledialog.ui
+++ b/cui/uiconfig/ui/newtabledialog.ui
@@ -31,7 +31,7 @@
<property name="can_focus">False</property>
<property name="layout_style">end</property>
<child>
- <object class="GtkButton" id="button1">
+ <object class="GtkButton" id="help">
<property name="label">gtk-help</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
@@ -168,7 +168,7 @@
</object>
</child>
<action-widgets>
- <action-widget response="-11">button1</action-widget>
+ <action-widget response="-11">help</action-widget>
<action-widget response="-5">ok</action-widget>
<action-widget response="-6">cancel</action-widget>
</action-widgets>
diff --git a/cui/uiconfig/ui/splitcellsdialog.ui b/cui/uiconfig/ui/splitcellsdialog.ui
index 863ae0b0f9ae..4a121d46e6b8 100644
--- a/cui/uiconfig/ui/splitcellsdialog.ui
+++ b/cui/uiconfig/ui/splitcellsdialog.ui
@@ -35,7 +35,7 @@
<property name="can_focus">False</property>
<property name="layout_style">end</property>
<child>
- <object class="GtkButton" id="button1">
+ <object class="GtkButton" id="ok">
<property name="label">gtk-ok</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
@@ -51,7 +51,7 @@
</packing>
</child>
<child>
- <object class="GtkButton" id="button2">
+ <object class="GtkButton" id="cancel">
<property name="label">gtk-cancel</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
@@ -65,7 +65,7 @@
</packing>
</child>
<child>
- <object class="GtkButton" id="button3">
+ <object class="GtkButton" id="help">
<property name="label">gtk-help</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
@@ -261,9 +261,9 @@
</object>
</child>
<action-widgets>
- <action-widget response="-5">button1</action-widget>
- <action-widget response="0">button2</action-widget>
- <action-widget response="-11">button3</action-widget>
+ <action-widget response="-5">ok</action-widget>
+ <action-widget response="-6">cancel</action-widget>
+ <action-widget response="-11">help</action-widget>
</action-widgets>
</object>
</interface>
diff --git a/sd/source/ui/dlg/PhotoAlbumDialog.cxx b/sd/source/ui/dlg/PhotoAlbumDialog.cxx
index da03348b075f..f2369d1334db 100644
--- a/sd/source/ui/dlg/PhotoAlbumDialog.cxx
+++ b/sd/source/ui/dlg/PhotoAlbumDialog.cxx
@@ -43,7 +43,7 @@ SdPhotoAlbumDialog::SdPhotoAlbumDialog(vcl::Window* pWindow, SdDrawDocument* pAc
: ModalDialog(pWindow, "PhotoAlbumCreatorDialog", "modules/simpress/ui/photoalbum.ui"),
pDoc(pActDoc)
{
- get(pCancelBtn, "cancel_btn");
+ get(pCancelBtn, "cancel");
get(pCreateBtn, "create_btn");
get(pAddBtn, "add_btn");
diff --git a/sd/uiconfig/simpress/ui/photoalbum.ui b/sd/uiconfig/simpress/ui/photoalbum.ui
index 9e12348c05e0..c25099e6860f 100644
--- a/sd/uiconfig/simpress/ui/photoalbum.ui
+++ b/sd/uiconfig/simpress/ui/photoalbum.ui
@@ -71,7 +71,7 @@
</packing>
</child>
<child>
- <object class="GtkButton" id="cancel_btn">
+ <object class="GtkButton" id="cancel">
<property name="label">gtk-cancel</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
@@ -425,7 +425,7 @@
</child>
<action-widgets>
<action-widget response="0">create_btn</action-widget>
- <action-widget response="0">cancel_btn</action-widget>
+ <action-widget response="-6">cancel</action-widget>
</action-widgets>
</object>
</interface>
diff --git a/svtools/uiconfig/ui/placeedit.ui b/svtools/uiconfig/ui/placeedit.ui
index 325f415f89f9..61ddbcaec0dd 100644
--- a/svtools/uiconfig/ui/placeedit.ui
+++ b/svtools/uiconfig/ui/placeedit.ui
@@ -48,7 +48,7 @@
<property name="can_focus">False</property>
<property name="layout_style">end</property>
<child>
- <object class="GtkButton" id="button1">
+ <object class="GtkButton" id="help">
<property name="label">gtk-help</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
@@ -464,6 +464,7 @@
<action-widget response="0">delete</action-widget>
<action-widget response="-5">ok</action-widget>
<action-widget response="-6">cancel</action-widget>
+ <action-widget response="-11">help</action-widget>
</action-widgets>
</object>
</interface>
diff --git a/sw/source/ui/dbui/mmoutputtypepage.cxx b/sw/source/ui/dbui/mmoutputtypepage.cxx
index c77fadac9ca5..ed7fcba2d4df 100644
--- a/sw/source/ui/dbui/mmoutputtypepage.cxx
+++ b/sw/source/ui/dbui/mmoutputtypepage.cxx
@@ -248,7 +248,7 @@ SwSendMailDialog::SwSendMailDialog(vcl::Window *pParent, SwMailMergeConfigItem&
m_pErrorStatus(get<FixedText>("errorstatus")),
m_pContainer(get<SvSimpleTableContainer>("container")),
m_pStop(get<PushButton>("stop")),
- m_pClose(get<PushButton>("close")),
+ m_pClose(get<PushButton>("cancel")),
m_sContinue(SwResId( ST_CONTINUE )),
m_sStop(m_pStop->GetText()),
m_sTransferStatus(m_pTransferStatus->GetText()),
diff --git a/sw/uiconfig/swriter/ui/mmsendmails.ui b/sw/uiconfig/swriter/ui/mmsendmails.ui
index 0c0c293559e5..fc96ba2676ae 100644
--- a/sw/uiconfig/swriter/ui/mmsendmails.ui
+++ b/sw/uiconfig/swriter/ui/mmsendmails.ui
@@ -37,7 +37,7 @@
</packing>
</child>
<child>
- <object class="GtkButton" id="close">
+ <object class="GtkButton" id="cancel">
<property name="label">gtk-cancel</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
@@ -269,7 +269,7 @@
</child>
<action-widgets>
<action-widget response="0">stop</action-widget>
- <action-widget response="-7">close</action-widget>
+ <action-widget response="-6">cancel</action-widget>
</action-widgets>
</object>
</interface>
diff --git a/sw/uiconfig/swriter/ui/signatureline.ui b/sw/uiconfig/swriter/ui/signatureline.ui
index bc6b4d26d36a..42db748fba81 100644
--- a/sw/uiconfig/swriter/ui/signatureline.ui
+++ b/sw/uiconfig/swriter/ui/signatureline.ui
@@ -16,7 +16,7 @@
<property name="can_focus">False</property>
<property name="layout_style">end</property>
<child>
- <object class="GtkButton" id="btn_cancel">
+ <object class="GtkButton" id="cancel">
<property name="label">gtk-cancel</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
@@ -30,7 +30,7 @@
</packing>
</child>
<child>
- <object class="GtkButton" id="btn_ok">
+ <object class="GtkButton" id="ok">
<property name="label">gtk-ok</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
@@ -236,5 +236,9 @@
</child>
</object>
</child>
+ <action-widgets>
+ <action-widget response="-5">ok</action-widget>
+ <action-widget response="-6">cancel</action-widget>
+ </action-widgets>
</object>
</interface>
diff --git a/sw/uiconfig/swriter/ui/sortdialog.ui b/sw/uiconfig/swriter/ui/sortdialog.ui
index ce1403aa07f5..89dcc436c490 100644
--- a/sw/uiconfig/swriter/ui/sortdialog.ui
+++ b/sw/uiconfig/swriter/ui/sortdialog.ui
@@ -41,7 +41,7 @@
</packing>
</child>
<child>
- <object class="GtkButton" id="button2">
+ <object class="GtkButton" id="cancel">
<property name="label">gtk-cancel</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
@@ -786,7 +786,7 @@
</child>
<action-widgets>
<action-widget response="-5">ok</action-widget>
- <action-widget response="0">button2</action-widget>
+ <action-widget response="-6">cancel</action-widget>
<action-widget response="-11">help</action-widget>
</action-widgets>
</object>
diff --git a/uui/uiconfig/ui/password.ui b/uui/uiconfig/ui/password.ui
index c0de94a78b36..4d1472a94e16 100644
--- a/uui/uiconfig/ui/password.ui
+++ b/uui/uiconfig/ui/password.ui
@@ -47,7 +47,7 @@
</packing>
</child>
<child>
- <object class="GtkButton" id="button1">
+ <object class="GtkButton" id="help">
<property name="label">gtk-help</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
@@ -138,6 +138,7 @@
<action-widgets>
<action-widget response="-5">ok</action-widget>
<action-widget response="-6">cancel</action-widget>
+ <action-widget response="-11">help</action-widget>
</action-widgets>
</object>
<object class="GtkSizeGroup" id="sizegroup1"/>
diff --git a/vcl/qa/cppunit/builder/demo.ui b/vcl/qa/cppunit/builder/demo.ui
index 20851b3e7b41..5712f6802d70 100644
--- a/vcl/qa/cppunit/builder/demo.ui
+++ b/vcl/qa/cppunit/builder/demo.ui
@@ -15,7 +15,7 @@
<property name="can_focus">False</property>
<property name="layout_style">end</property>
<child>
- <object class="GtkButton" id="button2">
+ <object class="GtkButton" id="cancel">
<property name="label">gtk-cancel</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
@@ -31,7 +31,7 @@
</packing>
</child>
<child>
- <object class="GtkButton" id="button1">
+ <object class="GtkButton" id="ok">
<property name="label">gtk-ok</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
@@ -1993,8 +1993,8 @@
</object>
</child>
<action-widgets>
- <action-widget response="0">button2</action-widget>
- <action-widget response="0">button1</action-widget>
+ <action-widget response="-6">cancel</action-widget>
+ <action-widget response="-5">ok</action-widget>
</action-widgets>
</object>
<object class="GtkListStore" id="liststore1">
More information about the Libreoffice-commits
mailing list