Imported Upstream version 0.3~20101209
[debian/pino.git] / src / main_window.vala
index 531ef63..b1b0af6 100644 (file)
@@ -9,9 +9,10 @@ public class MainWindow : Window {
        private Widget menubar;
        public MenuIndicator indicator;
        private TreeWidget tree;
-       private ContentView content_view;
+       //private ContentView content_view;
+       private ViewArea view_area;
        private StatusBox status_box;
-       private VisualStyle visual_style;
+       //private VisualStyle visual_style;
        private VPaned vpaned;
        private HPaned hpaned;
        
@@ -42,10 +43,12 @@ public class MainWindow : Window {
                
                visual_style = new VisualStyle(this);
                
-               content_view = new ContentView(accounts, visual_style);
+               //content_view = new ContentView(accounts, visual_style);
+               view_area = new ViewArea(accounts);
                
                HBox webbox = new HBox(false, 0);
-               webbox.pack_start(content_view.frame, true, true, 0);
+               //webbox.pack_start(content_view.frame, true, true, 0);
+               webbox.pack_start(view_area, true, true, 0);
                
                status_box = new StatusBox(this, accounts);
                
@@ -77,6 +80,7 @@ public class MainWindow : Window {
                
                //hide some widgets
                indicator.hide();
+               view_area.generate_views();
                
                signals_setup();
                
@@ -163,8 +167,9 @@ public class MainWindow : Window {
                        main_quit();
                });
                
-               tree.cursor_moved.connect((hash) => {
-                       content_view.set_current_list(hash);
+               tree.cursor_moved.connect((stream) => {
+                       //content_view.set_current_list(hash);
+                       view_area.set_current_view(stream);
                });
        }
 }