[gtranslator] [charmap] get the tabs instead of the documents
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator] [charmap] get the tabs instead of the documents
- Date: Mon, 28 Mar 2011 20:01:17 +0000 (UTC)
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]