[postr] Added support for Gtk.Spell (#588571)



commit 8f9d5b7b35d3079de7c5a862b528bbf982edc49b
Author: Matthew Martin <mtt martin gmail com>
Date:   Wed Nov 4 20:31:25 2009 -0300

    Added support for Gtk.Spell (#588571)
    Signed-off-by: Germán Póo-Caamaño <gpoo gnome org>

 src/postr.py |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/postr.py b/src/postr.py
index 3b38f86..cc8eaf1 100644
--- a/src/postr.py
+++ b/src/postr.py
@@ -22,6 +22,12 @@ from os.path import basename
 import pygtk; pygtk.require ("2.0")
 import gobject, gtk, gtk.glade, gconf
 
+try:
+    import gtkspell
+    has_gtkspell = True
+except:
+    has_gtkspell = False
+
 from AboutDialog import AboutDialog
 from AuthenticationDialog import AuthenticationDialog
 from ProgressDialog import ProgressDialog
@@ -108,6 +114,9 @@ class Postr(UniqueApp):
         selection = self.thumbview.get_selection()
         selection.connect("changed", self.on_selection_changed)
 
+        if has_gtkspell:
+          gtkspell.Spell(self.desc_view)
+
         # TODO: remove this
         self.current_it = None
         self.last_folder = None



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