[atomato] [UI] Refactor LibraryList to contain 2 lists



commit af33a8d75ed521afd46ac49027d4df0e9748caf1
Author: Rodrigo Moya <rodrigo gnome-db org>
Date:   Sat Jan 23 12:23:10 2016 +0100

    [UI] Refactor LibraryList to contain 2 lists

 src/library-list.vala    |   17 +++++++++++++++--
 src/workflow-editor.vala |    2 ++
 2 files changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/src/library-list.vala b/src/library-list.vala
index 11830dc..efc7387 100644
--- a/src/library-list.vala
+++ b/src/library-list.vala
@@ -24,11 +24,24 @@ using Gtk;
 
 namespace Atomato
 {
-    public class LibraryList : Gtk.TreeView
+    public class LibraryList : Gtk.Box
     {
+        Gtk.TreeView library_list;
+        Gtk.TreeView action_list;
+
         public LibraryList ()
         {
-            insert_column_with_attributes (-1, "Action", new Gtk.CellRendererText (), "text", 0);
+            Object (orientation: Gtk.Orientation.HORIZONTAL);
+
+            library_list = new Gtk.TreeView ();
+            library_list.insert_column_with_attributes (-1, "Library", new Gtk.CellRendererText (), "text", 
0);
+            library_list.show ();
+            pack_start (library_list);
+
+            action_list = new Gtk.TreeView ();
+            action_list.insert_column_with_attributes (-1, "Action", new Gtk.CellRendererText (), "text", 0);
+            action_list.show ();
+            pack_start (action_list);
 
             show ();
         }
diff --git a/src/workflow-editor.vala b/src/workflow-editor.vala
index 4a539ae..590ebe7 100644
--- a/src/workflow-editor.vala
+++ b/src/workflow-editor.vala
@@ -28,6 +28,8 @@ namespace Atomato
     {
         public WorkflowEditor ()
         {
+            Object (orientation: Gtk.Orientation.VERTICAL);
+
             show ();
         }
     }


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