[gedit-latex] windowactivatable: remove hack to restore the item in the bottom/side panels
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-latex] windowactivatable: remove hack to restore the item in the bottom/side panels
- Date: Sun, 26 Jun 2011 14:41:56 +0000 (UTC)
commit c19863aee4d18b8ebf9678fcbff47f693a62a5c3
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sun Jun 26 16:37:26 2011 +0200
windowactivatable: remove hack to restore the item in the bottom/side panels
latex/base/windowactivatable.py | 40 ---------------------------------------
1 files changed, 0 insertions(+), 40 deletions(-)
---
diff --git a/latex/base/windowactivatable.py b/latex/base/windowactivatable.py
index 2dd6d9d..6d868bc 100644
--- a/latex/base/windowactivatable.py
+++ b/latex/base/windowactivatable.py
@@ -460,12 +460,6 @@ class LaTeXWindowActivatable(GObject.Object, Gedit.WindowActivatable, PeasGtk.Co
pass
#
- # save selection state
- #
- self._selected_bottom_views[tab_decorator] = self._get_selected_bottom_view()
- self._selected_side_views[tab_decorator] = self._get_selected_side_view()
-
- #
# adjust editor-scope views
#
@@ -571,40 +565,6 @@ class LaTeXWindowActivatable(GObject.Object, Gedit.WindowActivatable, PeasGtk.Co
# update window context
#
self._window_context.window_scope_views = self._views
-
- #
- # restore selection state
- #
- self._set_selected_bottom_view(self._selected_bottom_views[tab_decorator])
- self._set_selected_side_view(self._selected_side_views[tab_decorator])
-
- def _get_selected_bottom_view(self):
- notebook = self.window.get_bottom_panel().get_children()[0].get_children()[0]
- assert type(notebook) is Gtk.Notebook
-
- return notebook.get_current_page()
-
- def _get_selected_side_view(self):
- notebook = self.window.get_side_panel().get_children()[1]
- assert type(notebook) is Gtk.Notebook
-
- return notebook.get_current_page()
-
- def _set_selected_bottom_view(self, view):
- notebook = self.window.get_bottom_panel().get_children()[0].get_children()[0]
- assert type(notebook) is Gtk.Notebook
-
- self._log.debug("_set_selected_bottom_view: %s" % view)
-
- notebook.set_current_page(view)
-
- def _set_selected_side_view(self, view):
- notebook = self.window.get_side_panel().get_children()[1]
- assert type(notebook) is Gtk.Notebook
-
- self._log.debug("_set_selected_side_view: %s" % view)
-
- notebook.set_current_page(view)
def _on_tab_added(self, window, tab):
"""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]