[gedit-latex] Show/hide toolbar when properly.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-latex] Show/hide toolbar when properly.
- Date: Wed, 5 Oct 2011 21:33:16 +0000 (UTC)
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]