diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-02-20 13:47:07 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-02-20 13:47:24 +0000 |
commit | 631ff4582706ef0535222a10c211e56f5a546fc8 (patch) | |
tree | bc0a5fc2dbac8ed2c1161a1bf377267933450930 /cui | |
parent | 4999a4b5376a4af26e106b303a9b334f1170ff9d (diff) |
remove ugly padding on empty rows
Change-Id: Ie29bb736343e854865aa0eda4dae031931d30d0d
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optgenrl.cxx | 5 | ||||
-rw-r--r-- | cui/uiconfig/ui/optuserpage.ui | 123 |
2 files changed, 88 insertions, 40 deletions
diff --git a/cui/source/options/optgenrl.cxx b/cui/source/options/optgenrl.cxx index 812278b2ccfd..3da87b0f34c1 100644 --- a/cui/source/options/optgenrl.cxx +++ b/cui/source/options/optgenrl.cxx @@ -200,6 +200,11 @@ public: : iField(iField_) , pEdit(pEdit_) { + //We want all widgets inside a container, so each row of the toplevel + //grid has another container in it. To avoid adding spacing to these + //empty grids they all default to invisible, so show them if their + //children are visibles + pEdit->GetParent()->Show(); pEdit->Show(); } }; diff --git a/cui/uiconfig/ui/optuserpage.ui b/cui/uiconfig/ui/optuserpage.ui index 3cfbc40fc9de..b53421d9539c 100644 --- a/cui/uiconfig/ui/optuserpage.ui +++ b/cui/uiconfig/ui/optuserpage.ui @@ -26,7 +26,6 @@ <property name="xalign">0</property> <property name="label" translatable="yes">_Company</property> <property name="use_underline">True</property> - <property name="mnemonic_widget">company</property> </object> <packing> <property name="left_attach">0</property> @@ -58,7 +57,6 @@ <property name="xalign">0</property> <property name="label" translatable="yes">_Street</property> <property name="use_underline">True</property> - <property name="mnemonic_widget">street</property> </object> <packing> <property name="left_attach">0</property> @@ -152,22 +150,9 @@ </packing> </child> <child> - <object class="GtkEntry" id="company"> - <property name="can_focus">True</property> - <property name="no_show_all">True</property> - <property name="invisible_char">•</property> - </object> - <packing> - <property name="left_attach">1</property> - <property name="top_attach">0</property> - <property name="width">1</property> - <property name="height">1</property> - </packing> - </child> - <child> <object class="GtkGrid" id="grid2"> - <property name="visible">True</property> <property name="can_focus">False</property> + <property name="no_show_all">True</property> <property name="column_spacing">12</property> <child> <object class="GtkEntry" id="firstname"> @@ -236,8 +221,8 @@ </child> <child> <object class="GtkGrid" id="grid3"> - <property name="visible">True</property> <property name="can_focus">False</property> + <property name="no_show_all">True</property> <property name="column_spacing">12</property> <child> <object class="GtkEntry" id="city"> @@ -306,8 +291,8 @@ </child> <child> <object class="GtkGrid" id="grid5"> - <property name="visible">True</property> <property name="can_focus">False</property> + <property name="no_show_all">True</property> <property name="hexpand">True</property> <property name="column_spacing">12</property> <child> @@ -358,8 +343,8 @@ </child> <child> <object class="GtkGrid" id="grid6"> - <property name="visible">True</property> <property name="can_focus">False</property> + <property name="no_show_all">True</property> <property name="column_spacing">12</property> <child> <object class="GtkEntry" id="home"> @@ -409,8 +394,8 @@ </child> <child> <object class="GtkGrid" id="grid7"> - <property name="visible">True</property> <property name="can_focus">False</property> + <property name="no_show_all">True</property> <property name="hexpand">True</property> <property name="column_spacing">12</property> <child> @@ -460,19 +445,6 @@ </packing> </child> <child> - <object class="GtkEntry" id="street"> - <property name="can_focus">True</property> - <property name="no_show_all">True</property> - <property name="invisible_char">•</property> - </object> - <packing> - <property name="left_attach">1</property> - <property name="top_attach">4</property> - <property name="width">1</property> - <property name="height">1</property> - </packing> - </child> - <child> <object class="GtkCheckButton" id="usefordocprop"> <property name="label" translatable="yes">Use data for document properties</property> <property name="visible">True</property> @@ -506,8 +478,8 @@ </child> <child> <object class="GtkGrid" id="grid8"> - <property name="visible">True</property> <property name="can_focus">False</property> + <property name="no_show_all">True</property> <property name="column_spacing">12</property> <child> <object class="GtkEntry" id="ruslastname"> @@ -615,8 +587,8 @@ </child> <child> <object class="GtkGrid" id="grid9"> - <property name="visible">True</property> <property name="can_focus">False</property> + <property name="no_show_all">True</property> <property name="column_spacing">12</property> <child> <object class="GtkEntry" id="eastlastname"> @@ -704,8 +676,8 @@ </child> <child> <object class="GtkGrid" id="grid10"> - <property name="visible">True</property> <property name="can_focus">False</property> + <property name="no_show_all">True</property> <property name="column_spacing">12</property> <child> <object class="GtkEntry" id="russtreet"> @@ -773,8 +745,8 @@ </child> <child> <object class="GtkGrid" id="grid11"> - <property name="visible">True</property> <property name="can_focus">False</property> + <property name="no_show_all">True</property> <property name="column_spacing">12</property> <child> <object class="GtkEntry" id="icity"> @@ -825,10 +797,53 @@ </packing> </child> <child> - <object class="GtkEntry" id="country"> - <property name="can_focus">True</property> + <object class="GtkGrid" id="grid4"> + <property name="can_focus">False</property> <property name="no_show_all">True</property> - <property name="invisible_char">•</property> + <property name="hexpand">True</property> + <child> + <object class="GtkEntry" id="street"> + <property name="can_focus">True</property> + <property name="no_show_all">True</property> + <property name="hexpand">True</property> + <property name="invisible_char">•</property> + <property name="invisible_char_set">True</property> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">0</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + </object> + <packing> + <property name="left_attach">1</property> + <property name="top_attach">4</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + <child> + <object class="GtkGrid" id="grid12"> + <property name="can_focus">False</property> + <property name="no_show_all">True</property> + <property name="hexpand">True</property> + <child> + <object class="GtkEntry" id="country"> + <property name="can_focus">True</property> + <property name="no_show_all">True</property> + <property name="hexpand">True</property> + <property name="invisible_char">•</property> + <property name="invisible_char_set">True</property> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">0</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> </object> <packing> <property name="left_attach">1</property> @@ -837,6 +852,34 @@ <property name="height">1</property> </packing> </child> + <child> + <object class="GtkGrid" id="grid13"> + <property name="can_focus">False</property> + <property name="no_show_all">True</property> + <property name="hexpand">True</property> + <child> + <object class="GtkEntry" id="company"> + <property name="can_focus">True</property> + <property name="no_show_all">True</property> + <property name="hexpand">True</property> + <property name="invisible_char">•</property> + <property name="invisible_char_set">True</property> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">0</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + </object> + <packing> + <property name="left_attach">1</property> + <property name="top_attach">0</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> </object> </child> </object> |