[gtranslator] [charmap] get the tabs instead of the documents



commit 1ddab610f5e3da39348aa3f18db9e4e04613e1d2
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Mon Mar 28 22:00:56 2011 +0200

    [charmap] get the tabs instead of the documents

 plugins/charmap/charmap/__init__.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/charmap/charmap/__init__.py b/plugins/charmap/charmap/__init__.py
index 9800701..1dc0737 100644
--- a/plugins/charmap/charmap/__init__.py
+++ b/plugins/charmap/charmap/__init__.py
@@ -48,7 +48,7 @@ class CharmapPlugin(GObject.Object, Gtranslator.WindowActivatable):
         self.window.remove_widget(self.panel)
 
     def do_update_state(self):
-        self.panel.set_sensitive(len(self.window.get_documents()) >= 1)
+        self.panel.set_sensitive(len(self.window.get_all_tabs()) >= 1)
 
     def get_document_font(self):
         if self.editor_settings.get_boolean("use-custom-font"):



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