Bug fix.
authorStefanos Harhalakis <v13@v13.gr>
Fri, 16 Jul 2010 20:04:51 +0000 (20:04 +0000)
committerStefanos Harhalakis <v13@v13.gr>
Fri, 16 Jul 2010 20:04:51 +0000 (20:04 +0000)
src/icongrid.py

index 5924031..ffe098d 100755 (executable)
@@ -87,11 +87,14 @@ class IconGrid(object):     #(gobject.GObject):
        if not isinstance(self, gtk.Widget):
            return
 
-       v=self.get_property('is-on-current-desktop')
-       if v:
+       try:
+           v=self.get_property('is-on-current-desktop')
+           if v:
+               self.queue_draw()
+           else:
+               self.draw_pending=True
+       except TypeError:
            self.queue_draw()
-       else:
-           self.draw_pending=True
 
     def iconAt(self, x, y):
        """ Get icon at coordinates x,y. X and Y are in pixels """