[latexila] Fix showing bottom panel on a build tool execution



commit e14dd1fea80cc83c8e6553ba015402053ce0a9d0
Author: SÃbastien Wilmet <swilmet gnome org>
Date:   Mon Aug 6 03:24:35 2012 +0200

    Fix showing bottom panel on a build tool execution

 src/main_window.vala             |    1 +
 src/main_window_build_tools.vala |    9 ++++++++-
 2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/main_window.vala b/src/main_window.vala
index 9218cf5..fb5c43d 100644
--- a/src/main_window.vala
+++ b/src/main_window.vala
@@ -227,6 +227,7 @@ public class MainWindow : Window
         /* Bottom panel */
 
         BottomPanel bottom_panel = get_bottom_panel ();
+        _main_window_build_tools.set_bottom_panel (bottom_panel);
 
         // When we resize the window, the bottom panel keeps the same height.
         _vpaned.pack1 (docs_vgrid, true, true);
diff --git a/src/main_window_build_tools.vala b/src/main_window_build_tools.vala
index a529526..baa4138 100644
--- a/src/main_window_build_tools.vala
+++ b/src/main_window_build_tools.vala
@@ -57,6 +57,7 @@ public class MainWindowBuildTools
     private UIManager _ui_manager;
     private BuildView _build_view;
     private FileBrowser _file_browser;
+    private BottomPanel _bottom_panel;
 
     private Gtk.ActionGroup _static_action_group;
     private Gtk.ActionGroup _dynamic_action_group;
@@ -103,6 +104,11 @@ public class MainWindowBuildTools
         _file_browser = file_browser;
     }
 
+    public void set_bottom_panel (BottomPanel bottom_panel)
+    {
+        _bottom_panel = bottom_panel;
+    }
+
     public void update_sensitivity ()
     {
         Gtk.Action clean_action = _static_action_group.get_action ("BuildClean");
@@ -301,6 +307,7 @@ public class MainWindowBuildTools
         return_if_fail (_main_window.active_tab != null);
         return_if_fail (_build_view != null);
         return_if_fail (_file_browser != null);
+        return_if_fail (_bottom_panel != null);
 
         BuildTool? tool = get_build_tool_from_name (action.name);
         return_if_fail (tool != null);
@@ -339,7 +346,7 @@ public class MainWindowBuildTools
             Utils.flush_queue ();
         }
 
-        _build_view.show ();
+        _bottom_panel.show ();
 
         Gtk.Action stop_exec = _static_action_group.get_action ("BuildStopExecution");
         stop_exec.sensitive = true;



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