summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2013-12-12 10:32:13 +0100
committerJan Holesovsky <kendy@collabora.com>2013-12-12 10:34:32 +0100
commit0096575d2269e1d5931e18c10d26ab00bcabf495 (patch)
tree7994bb137cdb107d9ca4ae33f56673db176c77a5
parent3e6ce9e2102a923bd0dab0b791db3587c6e434f2 (diff)
About config: Make the value box dialog a bit nicer.
Change-Id: I5e25401b76458e712070bc76c86083bbd9ae2daa
-rw-r--r--cui/source/options/optaboutconfig.cxx2
-rw-r--r--cui/uiconfig/ui/aboutconfigvaluedialog.ui10
2 files changed, 7 insertions, 5 deletions
diff --git a/cui/source/options/optaboutconfig.cxx b/cui/source/options/optaboutconfig.cxx
index 56b945afeee6..08cfbc59531c 100644
--- a/cui/source/options/optaboutconfig.cxx
+++ b/cui/source/options/optaboutconfig.cxx
@@ -121,7 +121,7 @@ void CuiCustomMultilineEdit::KeyInput( const KeyEvent& rKeyEvent )
Size CuiCustomMultilineEdit::GetOptimalSize() const
{
- return LogicToPixel(Size(150,30),MAP_APPFONT);
+ return LogicToPixel(Size(150, GetTextHeight()), MAP_APPFONT);
}
Size CuiAboutConfigTabPage::GetOptimalSize() const
diff --git a/cui/uiconfig/ui/aboutconfigvaluedialog.ui b/cui/uiconfig/ui/aboutconfigvaluedialog.ui
index 8c359d7dc110..8995bd503df0 100644
--- a/cui/uiconfig/ui/aboutconfigvaluedialog.ui
+++ b/cui/uiconfig/ui/aboutconfigvaluedialog.ui
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
+ <!-- interface-requires LibreOffice 1.0 -->
<object class="GtkDialog" id="AboutConfigValueDialog">
<property name="can_focus">False</property>
<property name="border_width">6</property>
@@ -9,12 +10,12 @@
<child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox1">
<property name="can_focus">False</property>
+ <property name="orientation">vertical</property>
<property name="spacing">12</property>
<child internal-child="action_area">
<object class="GtkButtonBox" id="dialog-action_area1">
<property name="can_focus">False</property>
- <property name="orientation">vertical</property>
- <property name="layout_style">start</property>
+ <property name="layout_style">end</property>
<child>
<object class="GtkButton" id="ok">
<property name="label">gtk-ok</property>
@@ -72,6 +73,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
+ <property name="vexpand">True</property>
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<child>
@@ -79,7 +81,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">Value</property>
+ <property name="label" translatable="yes">Value:</property>
</object>
<packing>
<property name="expand">False</property>
@@ -91,7 +93,7 @@
<object class="cuilo-CuiCustomMultilineEdit" id="valuebox">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="vexpand">True</property>
+ <property name="hexpand">True</property>
<property name="wrap_mode">char</property>
</object>
<packing>