diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-01-11 13:01:21 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-01-11 19:42:52 +0000 |
commit | 89cb169b49de363ac290c23cb228675d022f5cda (patch) | |
tree | 552d2393045b2c5b97fa326a481773345b0673d0 /filter | |
parent | b6f8bc08cdb514639fcc15d6ad76406478e44f54 (diff) |
use sizegroups instead of explicit code
Change-Id: I2376e69adf235d1e6f89296c50a9cea76041f9d7
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/xsltdialog/xmlfiltertestdialog.cxx | 12 | ||||
-rw-r--r-- | filter/uiconfig/ui/testxmlfilter.ui | 22 |
2 files changed, 8 insertions, 26 deletions
diff --git a/filter/source/xsltdialog/xmlfiltertestdialog.cxx b/filter/source/xsltdialog/xmlfiltertestdialog.cxx index 0c04cad42b1c..45742df584e3 100644 --- a/filter/source/xsltdialog/xmlfiltertestdialog.cxx +++ b/filter/source/xsltdialog/xmlfiltertestdialog.cxx @@ -156,18 +156,6 @@ XMLFilterTestDialog::XMLFilterTestDialog(Window* pParent, get(m_pPBRecentFile, "recentfile"); get(m_pFTNameOfRecentFile, "recentfilename"); - long nWidth = - std::max(m_pPBExportBrowse->get_preferred_size().Width(), - std::max(m_pPBCurrentDocument->get_preferred_size().Width(), - std::max(m_pPBImportBrowse->get_preferred_size().Width(), - m_pPBRecentFile->get_preferred_size().Width()))); - - //make sure that the second columns of the two disconnected - //grids are of equal width by ensuring that the widest - //entry in each equals - m_pPBExportBrowse->set_width_request(nWidth); - m_pPBImportBrowse->set_width_request(nWidth); - get(m_pPBClose, "close"); m_pPBExportBrowse->SetClickHdl(LINK( this, XMLFilterTestDialog, ClickHdl_Impl ) ); diff --git a/filter/uiconfig/ui/testxmlfilter.ui b/filter/uiconfig/ui/testxmlfilter.ui index fee4a79d14c7..a82fe119ee82 100644 --- a/filter/uiconfig/ui/testxmlfilter.ui +++ b/filter/uiconfig/ui/testxmlfilter.ui @@ -18,13 +18,11 @@ <child> <object class="GtkButton" id="close"> <property name="label">gtk-close</property> - <property name="use_action_appearance">False</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_action_appearance">False</property> <property name="use_stock">True</property> </object> <packing> @@ -36,11 +34,9 @@ <child> <object class="GtkButton" id="help"> <property name="label">gtk-help</property> - <property name="use_action_appearance">False</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="receives_default">True</property> - <property name="use_action_appearance">False</property> <property name="use_stock">True</property> </object> <packing> @@ -115,11 +111,9 @@ <child> <object class="GtkButton" id="exportbrowse"> <property name="label" translatable="yes">Browse...</property> - <property name="use_action_appearance">False</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="receives_default">True</property> - <property name="use_action_appearance">False</property> </object> <packing> <property name="left_attach">1</property> @@ -131,11 +125,9 @@ <child> <object class="GtkButton" id="currentdocument"> <property name="label" translatable="yes">Current Document</property> - <property name="use_action_appearance">False</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="receives_default">True</property> - <property name="use_action_appearance">False</property> </object> <packing> <property name="left_attach">1</property> @@ -232,11 +224,9 @@ <child> <object class="GtkButton" id="importbrowse"> <property name="label" translatable="yes">Browse...</property> - <property name="use_action_appearance">False</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="receives_default">True</property> - <property name="use_action_appearance">False</property> </object> <packing> <property name="left_attach">1</property> @@ -248,11 +238,9 @@ <child> <object class="GtkButton" id="recentfile"> <property name="label" translatable="yes">Recent File</property> - <property name="use_action_appearance">False</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="receives_default">True</property> - <property name="use_action_appearance">False</property> </object> <packing> <property name="left_attach">1</property> @@ -292,11 +280,9 @@ <child> <object class="GtkCheckButton" id="displaysource"> <property name="label" translatable="yes">Display source</property> - <property name="use_action_appearance">False</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="receives_default">False</property> - <property name="use_action_appearance">False</property> <property name="use_underline">True</property> <property name="xalign">0</property> <property name="draw_indicator">True</property> @@ -391,4 +377,12 @@ <action-widget response="0">help</action-widget> </action-widgets> </object> + <object class="GtkSizeGroup" id="sizegroup1"> + <widgets> + <widget name="exportbrowse"/> + <widget name="currentdocument"/> + <widget name="importbrowse"/> + <widget name="recentfile"/> + </widgets> + </object> </interface> |