[gnome-todo] task-list-view: Limit list width



commit c0c174a4ad0ab82e0d14eba3cc717bceccd9530c
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu May 7 23:00:34 2020 -0300

    task-list-view: Limit list width

 src/task-list-view/gtd-task-list-view.ui | 51 ++++++++++++++++++++------------
 1 file changed, 32 insertions(+), 19 deletions(-)
---
diff --git a/src/task-list-view/gtd-task-list-view.ui b/src/task-list-view/gtd-task-list-view.ui
index 82d8ca0..2497f70 100644
--- a/src/task-list-view/gtd-task-list-view.ui
+++ b/src/task-list-view/gtd-task-list-view.ui
@@ -20,30 +20,43 @@
               <object class="GtkStackPage">
                 <property name="name">listbox</property>
                 <property name="child">
-                  <object class="GtkBox">
-                    <property name="margin-top">6</property>
-                    <property name="margin-bottom">64</property>
-                    <property name="margin-start">18</property>
-                    <property name="margin-end">18</property>
-                    <property name="orientation">vertical</property>
-                    <child>
-                      <object class="GtkListBox" id="listbox">
-                        <property name="hexpand">1</property>
-                        <property name="selection_mode">none</property>
-                        <signal name="row-activated" handler="on_listbox_row_activated_cb" 
object="GtdTaskListView" swapped="no"/>
-                        <style>
-                          <class name="transparent"/>
-                        </style>
+                  <object class="GtdWidget">
+                    <property name="hexpand">1</property>
+                    <property name="vexpand">1</property>
+                    <property name="halign">center</property>
+                    <property name="layout-manager">
+                      <object class="GtdMaxSizeLayout">
+                        <property name="max-width">700</property>
                       </object>
-                    </child>
+                    </property>
                     <child>
-                      <object class="GtdNewTaskRow" id="new_task_row">
-                        <property name="margin-bottom">24</property>
-                        <signal name="enter" handler="on_new_task_row_entered_cb" object="GtdTaskListView" 
swapped="yes"/>
-                        <signal name="exit" handler="on_new_task_row_exited_cb" object="GtdTaskListView" 
swapped="yes"/>
+                      <object class="GtkBox">
+                        <property name="margin-top">6</property>
+                        <property name="margin-bottom">64</property>
+                        <property name="margin-start">18</property>
+                        <property name="margin-end">18</property>
+                        <property name="orientation">vertical</property>
+                        <child>
+                          <object class="GtkListBox" id="listbox">
+                            <property name="hexpand">1</property>
+                            <property name="selection_mode">none</property>
+                            <signal name="row-activated" handler="on_listbox_row_activated_cb" 
object="GtdTaskListView" swapped="no"/>
+                            <style>
+                              <class name="transparent"/>
+                            </style>
+                          </object>
+                        </child>
+                        <child>
+                          <object class="GtdNewTaskRow" id="new_task_row">
+                            <property name="margin-bottom">24</property>
+                            <signal name="enter" handler="on_new_task_row_entered_cb" 
object="GtdTaskListView" swapped="yes"/>
+                            <signal name="exit" handler="on_new_task_row_exited_cb" object="GtdTaskListView" 
swapped="yes"/>
+                          </object>
+                        </child>
                       </object>
                     </child>
                   </object>
+
                 </property>
               </object>
             </child>


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