diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-07 15:00:45 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-07 15:01:53 +0000 |
commit | 65a384eaa1d186868548f7d3d864229836332c84 (patch) | |
tree | e350fb1461754c3b8845e1d9cf63be3913d69551 /svx | |
parent | 5024ce2a2c0c08dcd74b2410d088a9daf83d2f31 (diff) |
set smaller preferred width for sidebar para spinners
i.e. use a size that's big enough for sane values to
fit, rather than full range of legal values. Width
space is at a premium here.
Change-Id: I5d34048690729415deaabec431eb16e43c5b7a0a
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/sidebar/paragraph/ParaPropertyPanel.cxx | 12 | ||||
-rw-r--r-- | svx/uiconfig/ui/sidebarparagraph.ui | 18 |
2 files changed, 21 insertions, 9 deletions
diff --git a/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx b/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx index 393c92a71073..219d8fcddc97 100644 --- a/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx +++ b/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx @@ -1493,14 +1493,20 @@ ParaPropertyPanel::ParaPropertyPanel(Window* pParent, get(mpTBxBackColor, "backgroundcolor"); //Paragraph spacing get(mpTopDist, "aboveparaspacing"); + mpTopDist->set_width_request(mpTopDist->get_preferred_size().Width()); get(mpBottomDist, "belowparaspacing"); + mpBottomDist->set_width_request(mpBottomDist->get_preferred_size().Width()); + get(mpLeftIndent, "beforetextindent"); + mpLeftIndent->set_width_request(mpLeftIndent->get_preferred_size().Width()); + get(mpRightIndent, "aftertextindent"); + mpRightIndent->set_width_request(mpRightIndent->get_preferred_size().Width()); + get(mpFLineIndent, "firstlineindent"); + mpFLineIndent->set_width_request(mpFLineIndent->get_preferred_size().Width()); + get(mpTbxIndent_IncDec, "indent"); get(mpTbxProDemote, "promotedemote"); get(mpLineSPTbx, "linespacing"); get(mpTbxUL_IncDec, "paraspacing"); - get(mpLeftIndent, "beforetextindent"); - get(mpRightIndent, "aftertextindent"); - get(mpFLineIndent, "firstlineindent"); initial(); } diff --git a/svx/uiconfig/ui/sidebarparagraph.ui b/svx/uiconfig/ui/sidebarparagraph.ui index 5aac47e0a6cd..9c3125af2039 100644 --- a/svx/uiconfig/ui/sidebarparagraph.ui +++ b/svx/uiconfig/ui/sidebarparagraph.ui @@ -1,7 +1,13 @@ <?xml version="1.0" encoding="UTF-8"?> +<!-- Generated with glade 3.16.1 --> <interface> - <!-- interface-requires gtk+ 3.0 --> + <requires lib="gtk+" version="3.0"/> <!-- interface-requires LibreOffice 1.0 --> + <object class="GtkAdjustment" id="adjustment1"> + <property name="upper">100</property> + <property name="step_increment">1</property> + <property name="page_increment">10</property> + </object> <object class="GtkGrid" id="ParaPropertyPanel"> <property name="visible">True</property> <property name="can_focus">False</property> @@ -338,7 +344,7 @@ <property name="tooltip_text" translatable="yes">Above Paragraph Spacing</property> <property name="hexpand">True</property> <property name="invisible_char">•</property> - <property name="invisible_char_set">True</property> + <property name="adjustment">adjustment1</property> </object> <packing> <property name="expand">False</property> @@ -380,7 +386,7 @@ <property name="tooltip_text" translatable="yes">Below Paragraph Spacing</property> <property name="hexpand">True</property> <property name="invisible_char">•</property> - <property name="invisible_char_set">True</property> + <property name="adjustment">adjustment1</property> </object> <packing> <property name="expand">False</property> @@ -419,7 +425,7 @@ <property name="can_focus">True</property> <property name="hexpand">True</property> <property name="invisible_char">•</property> - <property name="invisible_char_set">True</property> + <property name="adjustment">adjustment1</property> </object> <packing> <property name="expand">False</property> @@ -458,7 +464,7 @@ <property name="can_focus">True</property> <property name="hexpand">True</property> <property name="invisible_char">•</property> - <property name="invisible_char_set">True</property> + <property name="adjustment">adjustment1</property> </object> <packing> <property name="expand">False</property> @@ -497,7 +503,7 @@ <property name="can_focus">True</property> <property name="hexpand">True</property> <property name="invisible_char">•</property> - <property name="invisible_char_set">True</property> + <property name="adjustment">adjustment1</property> </object> <packing> <property name="expand">False</property> |