summaryrefslogtreecommitdiff
path: root/src/resources/ui/nautilus-compress-dialog.ui
diff options
context:
space:
mode:
authorRazvan Chitu <razvan.ch95@gmail.com>2016-09-30 16:54:35 +0300
committerRazvan Chitu <razvan.ch95@gmail.com>2016-10-04 23:22:27 +0300
commit36e506a73c9648973b0b25222145b8ec2c89ef06 (patch)
treec2aaff0028147c59ab58acd9a18a6abf08768b6a /src/resources/ui/nautilus-compress-dialog.ui
parent335eabec52e26406c339a9992c432efe28f8ac5e (diff)
downloadnautilus-36e506a73c9648973b0b25222145b8ec2c89ef06.tar.gz
compress-dialog: fix dialog width changes
The compress dialog has a width allocation request that can be smaller than the width of description labels in various languages other than english. In order to fix this, use a label widget for each description and group them in a homogeneous GtkStack. https://bugzilla.gnome.org/show_bug.cgi?id=771435
Diffstat (limited to 'src/resources/ui/nautilus-compress-dialog.ui')
-rw-r--r--src/resources/ui/nautilus-compress-dialog.ui48
1 files changed, 42 insertions, 6 deletions
diff --git a/src/resources/ui/nautilus-compress-dialog.ui b/src/resources/ui/nautilus-compress-dialog.ui
index 507f0ba03..526e9eed2 100644
--- a/src/resources/ui/nautilus-compress-dialog.ui
+++ b/src/resources/ui/nautilus-compress-dialog.ui
@@ -9,7 +9,6 @@
<property name="destroy_with_parent">True</property>
<property name="type_hint">dialog</property>
<property name="use-header-bar">1</property>
- <property name="width_request">490</property>
<child internal-child="vbox">
<object class="GtkBox" id="vbox">
<property name="orientation">vertical</property>
@@ -109,12 +108,49 @@
</packing>
</child>
<child>
- <object class="GtkLabel" id="description_label">
+ <object class="GtkStack" id="description_stack">
<property name="visible">True</property>
- <property name="xalign">0</property>
- <style>
- <class name="dim-label"/>
- </style>
+ <property name="can_focus">False</property>
+ <property name="homogeneous">True</property>
+ <child>
+ <object class="GtkLabel" id="zip_description_label">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">Compatible with all operating systems.</property>
+ <property name="xalign">0</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
+ </object>
+ <packing>
+ <property name="name">zip-description-label</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="tar_xz_description_label">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">Smaller archives but Linux and Mac only.</property>
+ <property name="xalign">0</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
+ </object>
+ <packing>
+ <property name="name">tar-xz-description-label</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="seven_zip_description_label">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">Smaller archives but must be installed on Windows and Mac.</property>
+ <property name="xalign">0</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
+ </object>
+ <packing>
+ <property name="name">seven-zip-description-label</property>
+ </packing>
+ </child>
</object>
<packing>
<property name="expand">False</property>