[gedit-latex/gnome-3-2] Show/hide toolbar when properly.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-latex/gnome-3-2] Show/hide toolbar when properly.
- Date: Wed, 5 Oct 2011 21:34:36 +0000 (UTC)
commit 7db7af84ee0d4d3e1c8cb41a41b427451876e875
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Wed Oct 5 23:32:37 2011 +0200
Show/hide toolbar when properly.
latex/base/windowactivatable.py | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/latex/base/windowactivatable.py b/latex/base/windowactivatable.py
index a70a3e5..4bd069d 100644
--- a/latex/base/windowactivatable.py
+++ b/latex/base/windowactivatable.py
@@ -414,6 +414,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
#
@@ -522,7 +527,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]