[gedit-latex] Fix LaTeXSymbolBrowser weirdness



commit 427a32aceae2a9078540a3917f48c6835c40527d
Author: John Stowers <john stowers gmail com>
Date:   Mon Aug 22 08:26:54 2011 +1200

    Fix LaTeXSymbolBrowser weirdness
    
    Make it editor scope and not window scope,
    which seems like the correct thing to do anyway.

 latex/base/config.py |    3 +--
 latex/latex/views.py |    2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/latex/base/config.py b/latex/base/config.py
index bc688b7..d6a0fed 100644
--- a/latex/base/config.py
+++ b/latex/base/config.py
@@ -76,8 +76,7 @@ WINDOW_SCOPE_VIEWS = {}
 EDITOR_SCOPE_VIEWS = {}
 
 for e in LATEX_EXTENSIONS:
-    WINDOW_SCOPE_VIEWS[e] = {"LaTeXSymbolMapView": LaTeXSymbolMapView}
-    EDITOR_SCOPE_VIEWS[e] = {"IssueView": IssueView, "LaTeXOutlineView": LaTeXOutlineView}
+    EDITOR_SCOPE_VIEWS[e] = {"IssueView": IssueView, "LaTeXOutlineView": LaTeXOutlineView, "LaTeXSymbolMapView": LaTeXSymbolMapView}
 
 for e in BIBTEX_EXTENSIONS:
     EDITOR_SCOPE_VIEWS[e] = {"IssueView": IssueView, "BibTeXOutlineView": BibTeXOutlineView}
diff --git a/latex/latex/views.py b/latex/latex/views.py
index b56bd55..ac3c807 100644
--- a/latex/latex/views.py
+++ b/latex/latex/views.py
@@ -83,7 +83,7 @@ class LaTeXSymbolMapView(PanelView):
     """
     _log = getLogger("LaTeXSymbolMapView")
 
-    def __init__(self, context):
+    def __init__(self, context, editor):
         PanelView.__init__(self, context)
 
         self._log.debug("init")



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