diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-06-18 16:35:24 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-06-18 16:46:40 +0100 |
commit | d1dda534fbf27e107937c8acff594be3d6ba6810 (patch) | |
tree | e32e59f4c080d52c71a46b8454c36572fc71e36c /sc/uiconfig | |
parent | 60446a0386b6d40899f6817c9545414841ee3522 (diff) |
use sizegroups and shown/hidden buttons to stop ui jitter
i.e. duplicate the buttons rather than change their content and have the same
handlers for both variants. Hide the one we don't want at any given time and
use size-groups to get the same width regardless of the combination shown. All
so the ui doesn't jump around the place as the button content changes.
Change-Id: Icca938a6381da1feaf43fd11779d1d6d94d5d3a0
Diffstat (limited to 'sc/uiconfig')
-rw-r--r-- | sc/uiconfig/scalc/ui/optsortlists.ui | 44 |
1 files changed, 42 insertions, 2 deletions
diff --git a/sc/uiconfig/scalc/ui/optsortlists.ui b/sc/uiconfig/scalc/ui/optsortlists.ui index 34dec772ba5d..590e73a85ff2 100644 --- a/sc/uiconfig/scalc/ui/optsortlists.ui +++ b/sc/uiconfig/scalc/ui/optsortlists.ui @@ -35,6 +35,20 @@ </packing> </child> <child> + <object class="GtkButton" id="discard"> + <property name="label" translatable="yes">_Discard</property> + <property name="can_focus">True</property> + <property name="receives_default">True</property> + <property name="no_show_all">True</property> + <property name="use_underline">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + <child> <object class="GtkButton" id="add"> <property name="label" translatable="yes">_Add</property> <property name="visible">True</property> @@ -45,7 +59,21 @@ <packing> <property name="expand">False</property> <property name="fill">True</property> - <property name="position">1</property> + <property name="position">2</property> + </packing> + </child> + <child> + <object class="GtkButton" id="modify"> + <property name="label" translatable="yes">Modif_y</property> + <property name="can_focus">True</property> + <property name="receives_default">True</property> + <property name="no_show_all">True</property> + <property name="use_underline">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">3</property> </packing> </child> <child> @@ -59,7 +87,7 @@ <packing> <property name="expand">False</property> <property name="fill">True</property> - <property name="position">2</property> + <property name="position">4</property> </packing> </child> </object> @@ -213,4 +241,16 @@ </packing> </child> </object> + <object class="GtkSizeGroup" id="sizegroup1"> + <widgets> + <widget name="new"/> + <widget name="discard"/> + </widgets> + </object> + <object class="GtkSizeGroup" id="sizegroup2"> + <widgets> + <widget name="add"/> + <widget name="modify"/> + </widgets> + </object> </interface> |