diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2017-11-27 16:24:40 +0300 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-03-15 23:03:48 +0100 |
commit | 754411a0ec411690ac0a87b1b0f9d51c1057786c (patch) | |
tree | 8237f5e5a0e11efd1c079191713f29257a19c7c5 /sc/uiconfig | |
parent | 0248bcf43e19fafa556b468bba70e773c96f25bd (diff) |
tdf#113455 follow-up: use spin button labels as checkboxes
This streamlines the UI (avoids extra controls on page).
Labels' ids kept intact to preserve localization context.
Change-Id: Idbeb47d7f4e783107d49cb045125434291331140
Reviewed-on: https://gerrit.libreoffice.org/45333
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
(cherry picked from commit 5d74305ab4c6b755232afcdc41ecd9fde431152d)
Diffstat (limited to 'sc/uiconfig')
-rw-r--r-- | sc/uiconfig/scalc/ui/sheetprintpage.ui | 53 |
1 files changed, 21 insertions, 32 deletions
diff --git a/sc/uiconfig/scalc/ui/sheetprintpage.ui b/sc/uiconfig/scalc/ui/sheetprintpage.ui index 4daeadf15309..adaf37bb818a 100644 --- a/sc/uiconfig/scalc/ui/sheetprintpage.ui +++ b/sc/uiconfig/scalc/ui/sheetprintpage.ui @@ -429,13 +429,17 @@ <property name="column_spacing">12</property> <property name="row_homogeneous">True</property> <child> - <object class="GtkLabel" id="labelWP"> + <object class="GtkCheckButton" id="labelWP"> <property name="visible">True</property> - <property name="can_focus">False</property> + <property name="can_focus">True</property> <property name="label" translatable="yes" context="sheetprintpage|labelWP">_Width in pages:</property> <property name="use_underline">True</property> - <property name="mnemonic_widget">spinED_SCALEPAGEWIDTH</property> + <property name="receives_default">False</property> + <property name="draw_indicator">True</property> <property name="xalign">0</property> + <accessibility> + <relation type="label-for" target="spinED_SCALEPAGEWIDTH"/> + </accessibility> </object> <packing> <property name="left_attach">0</property> @@ -443,13 +447,17 @@ </packing> </child> <child> - <object class="GtkLabel" id="labelHP"> + <object class="GtkCheckButton" id="labelHP"> <property name="visible">True</property> - <property name="can_focus">False</property> + <property name="can_focus">True</property> <property name="label" translatable="yes" context="sheetprintpage|labelHP">_Height in pages:</property> <property name="use_underline">True</property> - <property name="mnemonic_widget">spinED_SCALEPAGEHEIGHT</property> + <property name="receives_default">False</property> + <property name="draw_indicator">True</property> <property name="xalign">0</property> + <accessibility> + <relation type="label-for" target="spinED_SCALEPAGEHEIGHT"/> + </accessibility> </object> <packing> <property name="left_attach">0</property> @@ -463,6 +471,9 @@ <property name="invisible_char">•</property> <property name="shadow_type">none</property> <property name="adjustment">adjustmentPage</property> + <accessibility> + <relation type="labelled-by" target="labelWP"/> + </accessibility> </object> <packing> <property name="left_attach">1</property> @@ -474,39 +485,17 @@ <property name="visible">True</property> <property name="can_focus">True</property> <property name="invisible_char">•</property> + <property name="shadow_type">none</property> <property name="adjustment">adjustmentPage</property> + <accessibility> + <relation type="labelled-by" target="labelHP"/> + </accessibility> </object> <packing> <property name="left_attach">1</property> <property name="top_attach">1</property> </packing> </child> - <child> - <object class="GtkCheckButton" id="unsetwidth"> - <property name="label" translatable="yes" context="sheetprintpage|unsetwidth">Unspecified</property> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="receives_default">False</property> - <property name="draw_indicator">True</property> - </object> - <packing> - <property name="left_attach">2</property> - <property name="top_attach">0</property> - </packing> - </child> - <child> - <object class="GtkCheckButton" id="unsetheight"> - <property name="label" translatable="yes" context="sheetprintpage|unsetheight">Unspecified</property> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="receives_default">False</property> - <property name="draw_indicator">True</property> - </object> - <packing> - <property name="left_attach">2</property> - <property name="top_attach">1</property> - </packing> - </child> </object> <packing> <property name="expand">False</property> |