summaryrefslogtreecommitdiff
authorCaolán McNamara <caolanm@redhat.com>2013-01-22 13:41:40 (GMT)
committer Caolán McNamara <caolanm@redhat.com>2013-01-22 16:57:43 (GMT)
commit0a28e23be70d1e61dd176259b12e63bb128972f7 (patch) (side-by-side diff)
tree01c8d530d277a36444b8487e11bd8a9499dff593
parent230b9c2b37ad9f2726d74780716a5f654cc9b0f6 (diff)
downloadcore-0a28e23be70d1e61dd176259b12e63bb128972f7.zip
core-0a28e23be70d1e61dd176259b12e63bb128972f7.tar.gz
Tutorial step #2 improve .ui prototype
1. Pick a button to be the default button 1.1. Select can-default and has-default 2. Pretty it up a little 2.1. Set 12 pixel row spacing to toplevel grid 2.2. Set 6 pixel row spacing on second level grids 2.3. Set 6 pixel col spacing on second level grid 2.4. Add 6 pixel top spacing to alignments 3. Resize behaviour 3.1. Select "translate common terms" to horizontally expand 3.2. Select frame1 and frame2 to vertically expand 3.3. Resize dialog in glade and confirm behaviour is as desired 3.4. confirm with glade-previewer 3.5. confirm with ui-previewer Change-Id: I3a77f92394afdc849b45c38e16aab6e0349165e8
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--svx/uiconfig/ui/chineseconversiondialog.ui21
1 files changed, 21 insertions, 0 deletions
diff --git a/svx/uiconfig/ui/chineseconversiondialog.ui b/svx/uiconfig/ui/chineseconversiondialog.ui
index ee1ae16..25bd8f1 100644
--- a/svx/uiconfig/ui/chineseconversiondialog.ui
+++ b/svx/uiconfig/ui/chineseconversiondialog.ui
@@ -20,6 +20,8 @@
<property name="label">gtk-ok</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
+ <property name="can_default">True</property>
+ <property name="has_default">True</property>
<property name="receives_default">True</property>
<property name="use_stock">True</property>
</object>
@@ -69,21 +71,31 @@
<object class="GtkGrid" id="grid1">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="hexpand">True</property>
+ <property name="vexpand">True</property>
+ <property name="row_spacing">12</property>
<child>
<object class="GtkFrame" id="frame1">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="hexpand">True</property>
+ <property name="vexpand">True</property>
<property name="label_xalign">0</property>
<property name="shadow_type">none</property>
<child>
<object class="GtkAlignment" id="alignment1">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="hexpand">True</property>
+ <property name="vexpand">True</property>
+ <property name="top_padding">6</property>
<property name="left_padding">12</property>
<child>
<object class="GtkGrid" id="grid2">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="hexpand">True</property>
+ <property name="row_spacing">6</property>
<child>
<object class="GtkRadioButton" id="radiobutton1">
<property name="label" translatable="yes">_Traditional Chinese to simplified Chinese</property>
@@ -147,23 +159,32 @@
<object class="GtkFrame" id="frame2">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="hexpand">True</property>
+ <property name="vexpand">True</property>
<property name="label_xalign">0</property>
<property name="shadow_type">none</property>
<child>
<object class="GtkAlignment" id="alignment2">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="hexpand">True</property>
+ <property name="vexpand">True</property>
+ <property name="top_padding">6</property>
<property name="left_padding">12</property>
<child>
<object class="GtkGrid" id="grid3">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="hexpand">True</property>
+ <property name="row_spacing">6</property>
+ <property name="column_spacing">6</property>
<child>
<object class="GtkCheckButton" id="checkbutton1">
<property name="label" translatable="yes">Translate _common terms</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
+ <property name="hexpand">True</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>