[gedit-latex] Show/hide toolbar when properly.



commit 3613b6609b49c6e467044b25d747361118280390
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Wed Oct 5 23:32:37 2011 +0200

    Show/hide toolbar when properly.

 latex/windowactivatable.py |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/latex/windowactivatable.py b/latex/windowactivatable.py
index 374c4ec..97b1a4e 100644
--- a/latex/windowactivatable.py
+++ b/latex/windowactivatable.py
@@ -415,6 +415,11 @@ class LaTeXWindowActivatable(GObject.Object, Gedit.WindowActivatable, PeasGtk.Co
             except KeyError:
                 pass
 
+        if extension:
+            self.show_toolbar()
+        else:
+            self.hide_toolbar()
+
         #
         # adjust editor-scope views
         #
@@ -523,7 +528,7 @@ class LaTeXWindowActivatable(GObject.Object, Gedit.WindowActivatable, PeasGtk.Co
         self._active_tab_decorator = decorator
 
         # adjust actions and views
-        GObject.idle_add(self.adjust,decorator)
+        GObject.idle_add(self.adjust, decorator)
 
     def _create_tab_decorator(self, tab, init=False):
         """



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