[gedit-latex] windowactivatable: fix panel insertion



commit dc2bb0c583d80afa0c87d4bc9638ecc10e276f09
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Sun Jul 3 12:56:38 2011 +0200

    windowactivatable: fix panel insertion

 latex/base/windowactivatable.py |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/latex/base/windowactivatable.py b/latex/base/windowactivatable.py
index 8180f63..3caa7ee 100644
--- a/latex/base/windowactivatable.py
+++ b/latex/base/windowactivatable.py
@@ -555,13 +555,15 @@ class LaTeXWindowActivatable(GObject.Object, Gedit.WindowActivatable, PeasGtk.Co
         # add AFTER.difference(BEFORE)
         i = 1
         for view in after_window_side_views.difference(before_window_side_views):
-            i += 1
-            self.window.get_side_panel().add_item(view, "WHATView" + str(i), view.get_label(), view.get_icon())
+            self.window.get_side_panel().add_item(view, "SidePanelId_" + str(i), view.get_label(), view.get_icon())
             self._window_side_views.append(view)
+            i += 1
 
+        i = 1
         for view in after_window_bottom_views.difference(before_window_bottom_views):
-            self.window.get_bottom_panel().add_item(view, view.get_label(), view.get_icon())
+            self.window.get_bottom_panel().add_item(view, "BottomPanelId_" + str(i), view.get_label(), view.get_icon())
             self._window_bottom_views.append(view)
+            i += 1
 
         #
         # update window context



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