Create the invisible mouse cursor in a simpler way.
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 16 Sep 2006 08:58:45 +0000 (08:58 +0000)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 16 Sep 2006 08:58:45 +0000 (08:58 +0000)
src/packages/kofoto/gkofoto/fullscreenwindow.py

index 028e2f6..d0caccb 100644 (file)
@@ -111,16 +111,9 @@ class FullScreenWindow(gtk.Window):
             self._image_view.set_image(self._get_image_async_cb)
 
     def _hide_cursor(self):
-        pix_data = """/* XPM */
-            static char * invisible_xpm[] = {
-            "1 1 1 1",
-            "       c None",
-            " "};
-            """
+        pixmap = gtk.gdk.Pixmap(None, 1, 1, 1)
         color = gtk.gdk.Color()
-        pix = gtk.gdk.pixmap_create_from_data(
-            None, pix_data, 1, 1, 1, color, color)
-        invisible_cursor = gtk.gdk.Cursor(pix, pix, color, color, 0, 0)
+        invisible_cursor = gtk.gdk.Cursor(pixmap, pixmap, color, color, 0, 0)
         self.window.set_cursor(invisible_cursor)
 
     def _is_valid_index(self, index):