Kaydet (Commit) 7bf2f528 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

About config: Make the value box dialog a bit nicer.

Change-Id: I5e25401b76458e712070bc76c86083bbd9ae2daa
üst b3708761
......@@ -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
......
<?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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment