deskbar-applet r2633 - in trunk: . deskbar/handlers



Author: sebp
Date: Thu Apr  2 19:20:38 2009
New Revision: 2633
URL: http://svn.gnome.org/viewvc/deskbar-applet?rev=2633&view=rev

Log:
Fixed bug #577487: identi.ca plugin incorrectly shows amount of remaining symbols

Modified:
   trunk/ChangeLog
   trunk/deskbar/handlers/twitter.py

Modified: trunk/deskbar/handlers/twitter.py
==============================================================================
--- trunk/deskbar/handlers/twitter.py	(original)
+++ trunk/deskbar/handlers/twitter.py	Thu Apr  2 19:20:38 2009
@@ -27,7 +27,7 @@
 _identica_pixbuf = load_base64_icon (IDENTICA_ICON)
 
 HANDLERS = ["TwitterModule", "IdenticaModule"]
-VERSION = "0.3"
+VERSION = "0.3.1"
 
 MIN_MESSAGE_LEN = 2
 
@@ -232,6 +232,9 @@
                                                     extra_widget_factory=self.get_extra_account_dialog_widget)
     
     def query(self, qstring):
+        # Convert string to unicode string so we get the correct length
+        # See bug #577487
+        qstring = unicode(qstring)
         if len (qstring) <= MIN_MESSAGE_LEN and \
            len (qstring) > 140: return None
         



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