Permalink
Browse files

fullscreen: hide cursor, add some space under the artwork

  • Loading branch information...
1 parent 2038f6c commit b4ce54f5939603a7fe1a7dc298667745310db4e6 Kirill Lashuk committed Jul 30, 2010
Showing with 13 additions and 1 deletion.
  1. +13 −1 sonata/main.py
View
@@ -785,7 +785,7 @@ def __init__(self, args, window=None, _sugar=False):
fscalbl, fscalbl2 = self.artwork.get_fullscreenalbumlabels()
fscahbox.pack_start(self.fullscreenalbumimage, True, False, 0)
fscavbox.pack_start(ui.label(), True, False, 0)
- fscavbox.pack_start(fscahbox, False, False, 0)
+ fscavbox.pack_start(fscahbox, False, False, 12)
fscavbox.pack_start(fscalbl, False, False, 5)
fscavbox.pack_start(fscalbl2, False, False, 5)
fscavbox.pack_start(ui.label(), True, False, 0)
@@ -2727,6 +2727,18 @@ def fullscreen_cover_art(self, _widget):
self.traytips.hide()
self.artwork.fullscreen_cover_art_set_image(force_update=True)
self.fullscreencoverart.show_all()
+ # setting up invisible cursor
+ window = self.fullscreencoverart.window
+ pix_data = '''/* XPM */
+ static char * invisible_xpm[] = {
+ "1 1 1 1",
+ " c None",
+ " "};'''
+ color = gtk.gdk.Color()
+ pix = gtk.gdk.pixmap_create_from_data(window, pix_data, 1, 1, 1,
+ color, color)
+ invisible_cursor = gtk.gdk.Cursor(pix, pix, color, color, 0, 0)
+ window.set_cursor(invisible_cursor)
def fullscreen_cover_art_close(self, _widget, event, key_press):
if key_press:

0 comments on commit b4ce54f

Please sign in to comment.