projects
/
joel
/
kofoto.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ca0b63b
)
Create the invisible mouse cursor in a simpler way.
author
Joel Rosdahl
<joel@rosdahl.net>
Sat, 16 Sep 2006 08:58:45 +0000
(08:58 +0000)
committer
Joel Rosdahl
<joel@rosdahl.net>
Sat, 16 Sep 2006 08:58:45 +0000
(08:58 +0000)
src/packages/kofoto/gkofoto/fullscreenwindow.py
patch
|
blob
|
history
diff --git
a/src/packages/kofoto/gkofoto/fullscreenwindow.py
b/src/packages/kofoto/gkofoto/fullscreenwindow.py
index
028e2f6
..
d0caccb
100644
(file)
--- a/
src/packages/kofoto/gkofoto/fullscreenwindow.py
+++ b/
src/packages/kofoto/gkofoto/fullscreenwindow.py
@@
-111,16
+111,9
@@
class FullScreenWindow(gtk.Window):
self._image_view.set_image(self._get_image_async_cb)
def _hide_cursor(self):
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()
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):
self.window.set_cursor(invisible_cursor)
def _is_valid_index(self, index):