diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-01-03 21:26:31 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-01-06 20:33:20 +0100 |
commit | bd14c414082236c4be8fef8eb488afbd3dd481c6 (patch) | |
tree | 9b57a395f4f20eb916caf74fa72c337e9323632b /cui/uiconfig/ui/paragalignpage.ui | |
parent | replace only use of deprecated gtk-connect (diff) | |
download | core-bd14c414082236c4be8fef8eb488afbd3dd481c6.tar.gz core-bd14c414082236c4be8fef8eb488afbd3dd481c6.zip |
drop deprecated GtkAlignment, move left/top-padding into child margin-start/top
for cui part c
git show -w is recommended to view these changesets
Change-Id: I8c37b4904b528b5afe01c26b83c8df27b251909f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108688
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui/uiconfig/ui/paragalignpage.ui')
-rw-r--r-- | cui/uiconfig/ui/paragalignpage.ui | 478 |
1 files changed, 224 insertions, 254 deletions
diff --git a/cui/uiconfig/ui/paragalignpage.ui b/cui/uiconfig/ui/paragalignpage.ui index e6c2179344c7..f968acae7b06 100644 --- a/cui/uiconfig/ui/paragalignpage.ui +++ b/cui/uiconfig/ui/paragalignpage.ui @@ -12,35 +12,29 @@ <property name="row_spacing">12</property> <property name="column_spacing">24</property> <child> - <object class="GtkAlignment" id="alignment4"> + <object class="GtkScrolledWindow"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="top_padding">24</property> + <property name="halign">end</property> + <property name="valign">start</property> + <property name="hexpand">True</property> + <property name="hscrollbar_policy">never</property> + <property name="vscrollbar_policy">never</property> + <property name="shadow_type">in</property> + <property name="margin-top">24</property> <child> - <object class="GtkScrolledWindow"> + <object class="GtkViewport"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="halign">end</property> - <property name="valign">start</property> - <property name="hexpand">True</property> - <property name="hscrollbar_policy">never</property> - <property name="vscrollbar_policy">never</property> - <property name="shadow_type">in</property> <child> - <object class="GtkViewport"> + <object class="GtkDrawingArea" id="drawingareaWN_EXAMPLE"> <property name="visible">True</property> <property name="can_focus">False</property> - <child> - <object class="GtkDrawingArea" id="drawingareaWN_EXAMPLE"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="halign">center</property> - <property name="valign">start</property> - <child internal-child="accessible"> - <object class="AtkObject" id="drawingareaWN_EXAMPLE-atkobject"> - <property name="AtkObject::accessible-name" translatable="yes" context="paragalignpage|drawingareaWN_EXAMPLE-atkobject">Example</property> - </object> - </child> + <property name="halign">center</property> + <property name="valign">start</property> + <child internal-child="accessible"> + <object class="AtkObject" id="drawingareaWN_EXAMPLE-atkobject"> + <property name="AtkObject::accessible-name" translatable="yes" context="paragalignpage|drawingareaWN_EXAMPLE-atkobject">Example</property> </object> </child> </object> @@ -70,202 +64,190 @@ <property name="label_xalign">0</property> <property name="shadow_type">none</property> <child> - <object class="GtkAlignment" id="alignment1"> + <!-- n-columns=1 n-rows=1 --> + <object class="GtkGrid" id="grid2"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="top_padding">6</property> - <property name="left_padding">12</property> + <property name="row_spacing">3</property> + <property name="margin-start">12</property> + <property name="margin-top">6</property> + <child> + <object class="GtkRadioButton" id="radioBTN_LEFTALIGN"> + <property name="label" translatable="yes" context="paragalignpage|radioBTN_LEFTALIGN">_Left</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="use_underline">True</property> + <property name="xalign">0</property> + <property name="active">True</property> + <property name="draw_indicator">True</property> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">0</property> + </packing> + </child> + <child> + <object class="GtkRadioButton" id="radioBTN_RIGHTALIGN"> + <property name="label" translatable="yes" context="paragalignpage|radioBTN_RIGHTALIGN">_Right</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="use_underline">True</property> + <property name="xalign">0</property> + <property name="draw_indicator">True</property> + <property name="group">radioBTN_LEFTALIGN</property> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">1</property> + </packing> + </child> + <child> + <object class="GtkRadioButton" id="radioBTN_CENTERALIGN"> + <property name="label" translatable="yes" context="paragalignpage|radioBTN_CENTERALIGN">_Center</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="relief">none</property> + <property name="use_underline">True</property> + <property name="xalign">0</property> + <property name="draw_indicator">True</property> + <property name="group">radioBTN_LEFTALIGN</property> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">2</property> + </packing> + </child> <child> - <!-- n-columns=1 n-rows=1 --> - <object class="GtkGrid" id="grid2"> + <object class="GtkRadioButton" id="radioBTN_JUSTIFYALIGN"> + <property name="label" translatable="yes" context="paragalignpage|radioBTN_JUSTIFYALIGN">_Justified</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="use_underline">True</property> + <property name="xalign">0</property> + <property name="draw_indicator">True</property> + <property name="group">radioBTN_LEFTALIGN</property> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">3</property> + </packing> + </child> + <child> + <object class="GtkCheckButton" id="checkCB_EXPAND"> + <property name="label" translatable="yes" context="paragalignpage|checkCB_EXPAND">_Expand single word</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="margin-start">22</property> + <property name="relief">none</property> + <property name="use_underline">True</property> + <property name="xalign">0</property> + <property name="draw_indicator">True</property> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">5</property> + </packing> + </child> + <child> + <object class="GtkCheckButton" id="checkCB_SNAP"> + <property name="label" translatable="yes" context="paragalignpage|checkCB_SNAP">_Snap to text grid (if active)</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="margin-start">22</property> + <property name="use_underline">True</property> + <property name="xalign">0</property> + <property name="draw_indicator">True</property> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">6</property> + </packing> + </child> + <child> + <object class="GtkBox" id="box5"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="row_spacing">3</property> + <property name="homogeneous">True</property> <child> - <object class="GtkRadioButton" id="radioBTN_LEFTALIGN"> - <property name="label" translatable="yes" context="paragalignpage|radioBTN_LEFTALIGN">_Left</property> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="receives_default">False</property> - <property name="use_underline">True</property> - <property name="xalign">0</property> - <property name="active">True</property> - <property name="draw_indicator">True</property> - </object> - <packing> - <property name="left_attach">0</property> - <property name="top_attach">0</property> - </packing> - </child> - <child> - <object class="GtkRadioButton" id="radioBTN_RIGHTALIGN"> - <property name="label" translatable="yes" context="paragalignpage|radioBTN_RIGHTALIGN">_Right</property> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="receives_default">False</property> - <property name="use_underline">True</property> - <property name="xalign">0</property> - <property name="draw_indicator">True</property> - <property name="group">radioBTN_LEFTALIGN</property> - </object> - <packing> - <property name="left_attach">0</property> - <property name="top_attach">1</property> - </packing> - </child> - <child> - <object class="GtkRadioButton" id="radioBTN_CENTERALIGN"> - <property name="label" translatable="yes" context="paragalignpage|radioBTN_CENTERALIGN">_Center</property> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="receives_default">False</property> - <property name="relief">none</property> + <object class="GtkLabel" id="labelST_RIGHTALIGN_ASIAN"> + <property name="can_focus">False</property> + <property name="label" translatable="yes" context="paragalignpage|labelST_RIGHTALIGN_ASIAN">Righ_t/Bottom</property> <property name="use_underline">True</property> - <property name="xalign">0</property> - <property name="draw_indicator">True</property> - <property name="group">radioBTN_LEFTALIGN</property> </object> <packing> - <property name="left_attach">0</property> - <property name="top_attach">2</property> - </packing> - </child> - <child> - <object class="GtkRadioButton" id="radioBTN_JUSTIFYALIGN"> - <property name="label" translatable="yes" context="paragalignpage|radioBTN_JUSTIFYALIGN">_Justified</property> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="receives_default">False</property> - <property name="use_underline">True</property> - <property name="xalign">0</property> - <property name="draw_indicator">True</property> - <property name="group">radioBTN_LEFTALIGN</property> - </object> - <packing> - <property name="left_attach">0</property> - <property name="top_attach">3</property> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> </packing> </child> <child> - <object class="GtkCheckButton" id="checkCB_EXPAND"> - <property name="label" translatable="yes" context="paragalignpage|checkCB_EXPAND">_Expand single word</property> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="receives_default">False</property> - <property name="margin-start">22</property> - <property name="relief">none</property> + <object class="GtkLabel" id="labelST_LEFTALIGN_ASIAN"> + <property name="can_focus">False</property> + <property name="label" translatable="yes" context="paragalignpage|labelST_LEFTALIGN_ASIAN">_Left/Top</property> <property name="use_underline">True</property> - <property name="xalign">0</property> - <property name="draw_indicator">True</property> </object> <packing> - <property name="left_attach">0</property> - <property name="top_attach">5</property> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> </packing> </child> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">7</property> + </packing> + </child> + <child> + <object class="GtkBox" id="box4"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="spacing">6</property> + <property name="margin-start">18</property> <child> - <object class="GtkCheckButton" id="checkCB_SNAP"> - <property name="label" translatable="yes" context="paragalignpage|checkCB_SNAP">_Snap to text grid (if active)</property> + <object class="GtkLabel" id="labelLB_LASTLINE"> <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="receives_default">False</property> - <property name="margin-start">22</property> + <property name="can_focus">False</property> + <property name="label" translatable="yes" context="paragalignpage|labelLB_LASTLINE">_Last line:</property> <property name="use_underline">True</property> + <property name="mnemonic_widget">comboLB_LASTLINE</property> <property name="xalign">0</property> - <property name="draw_indicator">True</property> </object> <packing> - <property name="left_attach">0</property> - <property name="top_attach">6</property> - </packing> - </child> - <child> - <object class="GtkBox" id="box5"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="homogeneous">True</property> - <child> - <object class="GtkLabel" id="labelST_RIGHTALIGN_ASIAN"> - <property name="can_focus">False</property> - <property name="label" translatable="yes" context="paragalignpage|labelST_RIGHTALIGN_ASIAN">Righ_t/Bottom</property> - <property name="use_underline">True</property> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">0</property> - </packing> - </child> - <child> - <object class="GtkLabel" id="labelST_LEFTALIGN_ASIAN"> - <property name="can_focus">False</property> - <property name="label" translatable="yes" context="paragalignpage|labelST_LEFTALIGN_ASIAN">_Left/Top</property> - <property name="use_underline">True</property> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">1</property> - </packing> - </child> - </object> - <packing> - <property name="left_attach">0</property> - <property name="top_attach">7</property> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> </packing> </child> <child> - <object class="GtkAlignment"> + <object class="GtkComboBoxText" id="comboLB_LASTLINE"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="left_padding">18</property> - <child> - <object class="GtkBox" id="box4"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="spacing">6</property> - <child> - <object class="GtkLabel" id="labelLB_LASTLINE"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="label" translatable="yes" context="paragalignpage|labelLB_LASTLINE">_Last line:</property> - <property name="use_underline">True</property> - <property name="mnemonic_widget">comboLB_LASTLINE</property> - <property name="xalign">0</property> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">0</property> - </packing> - </child> - <child> - <object class="GtkComboBoxText" id="comboLB_LASTLINE"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="active">0</property> - <items> - <item id="0" translatable="yes" context="paragalignpage|liststoreLB_LASTLINE">Start</item> - <item id="1" translatable="yes" context="paragalignpage|liststoreLB_LASTLINE">Start</item> - <item id="2" translatable="yes" context="paragalignpage|liststoreLB_LASTLINE">Centered</item> - <item id="3" translatable="yes" context="paragalignpage|liststoreLB_LASTLINE">Justified</item> - </items> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">1</property> - </packing> - </child> - </object> - </child> + <property name="active">0</property> + <items> + <item id="0" translatable="yes" context="paragalignpage|liststoreLB_LASTLINE">Start</item> + <item id="1" translatable="yes" context="paragalignpage|liststoreLB_LASTLINE">Start</item> + <item id="2" translatable="yes" context="paragalignpage|liststoreLB_LASTLINE">Centered</item> + <item id="3" translatable="yes" context="paragalignpage|liststoreLB_LASTLINE">Justified</item> + </items> </object> <packing> - <property name="left_attach">0</property> - <property name="top_attach">4</property> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> </packing> </child> </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">4</property> + </packing> </child> </object> </child> @@ -292,51 +274,45 @@ <property name="label_xalign">0</property> <property name="shadow_type">none</property> <child> - <object class="GtkAlignment" id="alignment2"> + <object class="GtkBox" id="box2"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="top_padding">6</property> - <property name="left_padding">12</property> + <property name="spacing">6</property> + <property name="margin-start">12</property> + <property name="margin-top">6</property> <child> - <object class="GtkBox" id="box2"> + <object class="GtkLabel" id="labelFT_VERTALIGN"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="spacing">6</property> - <child> - <object class="GtkLabel" id="labelFT_VERTALIGN"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="label" translatable="yes" context="paragalignpage|labelFT_VERTALIGN">_Alignment:</property> - <property name="use_underline">True</property> - <property name="mnemonic_widget">comboLB_VERTALIGN</property> - <property name="xalign">0</property> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">0</property> - </packing> - </child> - <child> - <object class="GtkComboBoxText" id="comboLB_VERTALIGN"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="active">0</property> - <items> - <item id="0" translatable="yes" context="paragalignpage|liststoreLB_VERTALIGN">Automatic</item> - <item id="1" translatable="yes" context="paragalignpage|liststoreLB_VERTALIGN">Base line</item> - <item id="2" translatable="yes" context="paragalignpage|liststoreLB_VERTALIGN">Top</item> - <item id="3" translatable="yes" context="paragalignpage|liststoreLB_VERTALIGN">Middle</item> - <item id="4" translatable="yes" context="paragalignpage|liststoreLB_VERTALIGN">Bottom</item> - </items> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">1</property> - </packing> - </child> + <property name="label" translatable="yes" context="paragalignpage|labelFT_VERTALIGN">_Alignment:</property> + <property name="use_underline">True</property> + <property name="mnemonic_widget">comboLB_VERTALIGN</property> + <property name="xalign">0</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkComboBoxText" id="comboLB_VERTALIGN"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="active">0</property> + <items> + <item id="0" translatable="yes" context="paragalignpage|liststoreLB_VERTALIGN">Automatic</item> + <item id="1" translatable="yes" context="paragalignpage|liststoreLB_VERTALIGN">Base line</item> + <item id="2" translatable="yes" context="paragalignpage|liststoreLB_VERTALIGN">Top</item> + <item id="3" translatable="yes" context="paragalignpage|liststoreLB_VERTALIGN">Middle</item> + <item id="4" translatable="yes" context="paragalignpage|liststoreLB_VERTALIGN">Bottom</item> + </items> </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> </child> </object> </child> @@ -363,43 +339,37 @@ <property name="label_xalign">0</property> <property name="shadow_type">none</property> <child> - <object class="GtkAlignment" id="alignment3"> + <object class="GtkBox" id="box3"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="top_padding">6</property> - <property name="left_padding">12</property> + <property name="spacing">6</property> + <property name="margin-start">12</property> + <property name="margin-top">6</property> <child> - <object class="GtkBox" id="box3"> + <object class="GtkLabel" id="label2"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="label" translatable="yes" context="paragalignpage|label2">_Text direction:</property> + <property name="use_underline">True</property> + <property name="mnemonic_widget">comboLB_TEXTDIRECTION</property> + <property name="xalign">0</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkComboBoxText" id="comboLB_TEXTDIRECTION"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="spacing">6</property> - <child> - <object class="GtkLabel" id="label2"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="label" translatable="yes" context="paragalignpage|label2">_Text direction:</property> - <property name="use_underline">True</property> - <property name="mnemonic_widget">comboLB_TEXTDIRECTION</property> - <property name="xalign">0</property> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">0</property> - </packing> - </child> - <child> - <object class="GtkComboBoxText" id="comboLB_TEXTDIRECTION"> - <property name="visible">True</property> - <property name="can_focus">False</property> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">1</property> - </packing> - </child> </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> </child> </object> </child> |