Commit 9dc8ce3d authored by Bastien Nocera's avatar Bastien Nocera

Use GDK_CURSOR_BLANK as available in newer GTK+

2009-04-29  Bastien Nocera  <hadess@hadess.net>

	* src/backend/video-utils.c
	(totem_gdk_window_set_invisible_cursor): Use
	GDK_CURSOR_BLANK as available in newer GTK+
parent ad067d1a
2009-04-29 Bastien Nocera <hadess@hadess.net>
* src/backend/video-utils.c
(totem_gdk_window_set_invisible_cursor): Use
GDK_CURSOR_BLANK as available in newer GTK+
2009-04-24 Bastien Nocera <hadess@hadess.net>
* src/totem-uri.c (totem_add_subtitle):
......
......@@ -122,32 +122,11 @@ guint8 * yv12torgb (guint8 *src_y, guint8 *src_u, guint8 *src_v,
void
totem_gdk_window_set_invisible_cursor (GdkWindow *window)
{
GdkBitmap *empty_bitmap;
GdkCursor *cursor;
GdkColor useless;
char invisible_cursor_bits[] = { 0x0 };
useless.red = useless.green = useless.blue = 0;
useless.pixel = 0;
empty_bitmap = gdk_bitmap_create_from_data (window,
invisible_cursor_bits,
1, 1);
/* When there's no window, there's no bitmap */
if (empty_bitmap == NULL)
return;
cursor = gdk_cursor_new_from_pixmap (empty_bitmap,
empty_bitmap,
&useless,
&useless, 0, 0);
cursor = gdk_cursor_new (GDK_BLANK_CURSOR);
gdk_window_set_cursor (window, cursor);
gdk_cursor_unref (cursor);
g_object_unref (empty_bitmap);
}
void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment