gimmie r659 - in branches/gimmie-dev/gimmie/plugins: base pidgin



Author: seiflotfy
Date: Tue Jan 15 11:25:56 2008
New Revision: 659
URL: http://svn.gnome.org/viewvc/gimmie?rev=659&view=rev

Log:
some minor fixes



Modified:
   branches/gimmie-dev/gimmie/plugins/base/base.py
   branches/gimmie-dev/gimmie/plugins/pidgin/pidgin.py

Modified: branches/gimmie-dev/gimmie/plugins/base/base.py
==============================================================================
--- branches/gimmie-dev/gimmie/plugins/base/base.py	(original)
+++ branches/gimmie-dev/gimmie/plugins/base/base.py	Tue Jan 15 11:25:56 2008
@@ -99,7 +99,7 @@
     def __init__(self,
                  comment = None,
                  uri = None,
-                 filter_by_date = False):
+                 filter_by_date = True):
         ItemCategory.__init__(self,
                  name = "Images",
                  icon = "gnome-mime-image",

Modified: branches/gimmie-dev/gimmie/plugins/pidgin/pidgin.py
==============================================================================
--- branches/gimmie-dev/gimmie/plugins/pidgin/pidgin.py	(original)
+++ branches/gimmie-dev/gimmie/plugins/pidgin/pidgin.py	Tue Jan 15 11:25:56 2008
@@ -232,8 +232,11 @@
             launcher.launch_command("purple-remote uri %s" % self.get_uri())
 
     def get_is_online(self):
-        return pidgin_dbus.PurpleBuddyIsOnline(self.get_dbus_obj()) > 0
-
+        try:
+            return pidgin_dbus.PurpleBuddyIsOnline(self.get_dbus_obj()) > 0
+        except:
+            return False
+        
     def get_is_available(self):
         return pidgin_dbus.PurplePresenceIsAvailable(self.get_presence_dbus_obj())
 



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