[gedit-plugins] Translate plugin. Improve layout for preferences



commit c58c62fdb5f107493e0237f805c559d739051592
Author: Jordi Mas <jmas softcatala org>
Date:   Sat Mar 10 15:49:56 2018 +0100

    Translate plugin. Improve layout for preferences

 plugins/translate/translate/preferences.py    |    1 +
 plugins/translate/translate/ui/preferences.ui |   15 ++++++++++-----
 2 files changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/plugins/translate/translate/preferences.py b/plugins/translate/translate/preferences.py
index e40fd98..66d0aca 100644
--- a/plugins/translate/translate/preferences.py
+++ b/plugins/translate/translate/preferences.py
@@ -93,6 +93,7 @@ class Preferences(object):
 
             self._hint = Gtk.Label()
             self._hint.set_markup(service.get_api_hint())
+            self._apilabel.set_margin_right(12)
             apibox_container.add(self._hint)
             apibox_container.show_all()
         else:
diff --git a/plugins/translate/translate/ui/preferences.ui b/plugins/translate/translate/ui/preferences.ui
index 8ae6823..5d9a86f 100644
--- a/plugins/translate/translate/ui/preferences.ui
+++ b/plugins/translate/translate/ui/preferences.ui
@@ -5,23 +5,26 @@
   <object class="GtkGrid" id="grid">
     <property name="visible">True</property>
     <property name="can_focus">False</property>
+    <property name="margin_left">18</property>
+    <property name="margin_right">18</property>
+    <property name="margin_top">18</property>
+    <property name="margin_bottom">18</property>
     <property name="row_spacing">6</property>
     <child>
       <object class="GtkBox">
         <property name="visible">True</property>
         <property name="can_focus">False</property>
-        <property name="orientation">vertical</property>
         <child>
           <object class="GtkLabel">
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="halign">start</property>
-            <property name="margin_right">3</property>
-            <property name="label" translatable="yes">Translation languages</property>
+            <property name="margin_right">12</property>
+            <property name="label" translatable="yes">Translation languages:</property>
             <property name="justify">right</property>
           </object>
           <packing>
-            <property name="expand">True</property>
+            <property name="expand">False</property>
             <property name="fill">True</property>
             <property name="position">0</property>
           </packing>
@@ -34,7 +37,7 @@
             <property name="id_column">0</property>
           </object>
           <packing>
-            <property name="expand">False</property>
+            <property name="expand">True</property>
             <property name="fill">True</property>
             <property name="position">1</property>
           </packing>
@@ -53,6 +56,7 @@
           <object class="GtkLabel">
             <property name="visible">True</property>
             <property name="can_focus">False</property>
+            <property name="margin_right">12</property>
             <property name="label" translatable="yes">Where to output translation:</property>
           </object>
           <packing>
@@ -149,6 +153,7 @@
           <object class="GtkLabel">
             <property name="visible">True</property>
             <property name="can_focus">False</property>
+            <property name="margin_right">12</property>
             <property name="label" translatable="yes">Translation service:</property>
           </object>
           <packing>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]