[gtk+/gdk-backend-wayland] wayland: Add a few more cursors
- From: Kristian Høgsberg <krh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gdk-backend-wayland] wayland: Add a few more cursors
- Date: Thu, 10 Feb 2011 21:37:32 +0000 (UTC)
commit c3955ea0c251fea0141759719ddd46821ca5d0d7
Author: Kristian Høgsberg <krh bitplanet net>
Date: Thu Feb 10 14:08:53 2011 -0500
wayland: Add a few more cursors
gdk/wayland/gdkcursor-wayland.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/gdk/wayland/gdkcursor-wayland.c b/gdk/wayland/gdkcursor-wayland.c
index c71cf4f..e977929 100644
--- a/gdk/wayland/gdkcursor-wayland.c
+++ b/gdk/wayland/gdkcursor-wayland.c
@@ -244,6 +244,10 @@ static const struct {
int hotspot_x, hotspot_y;
} cursor_definitions[] = {
{ GDK_BLANK_CURSOR, NULL, 0, 0 },
+ { GDK_HAND1, DATADIR "/hand1.png", 18, 11 },
+ { GDK_HAND2, DATADIR "/hand2.png", 14, 8 },
+ { GDK_SB_H_DOUBLE_ARROW, DATADIR "/sb_h_double_arrow.png", 15, 15 },
+ { GDK_SB_V_DOUBLE_ARROW, DATADIR "/sb_v_double_arrow.png", 15, 15 },
{ GDK_XTERM, DATADIR "/xterm.png", 15, 15 },
{ GDK_BOTTOM_RIGHT_CORNER, DATADIR "/bottom_right_corner.png", 28, 28 }
};
@@ -277,12 +281,19 @@ _gdk_wayland_display_get_cursor_for_type (GdkDisplay *display,
if (wayland_display->cursors[i])
return g_object_ref (wayland_display->cursors[i]);
+ GDK_NOTE (CURSOR,
+ g_message ("creating new cursor for type %d, filename %s",
+ cursor_type, cursor_definitions[i].filename));
+
if (cursor_type != GDK_BLANK_CURSOR)
pixbuf = gdk_pixbuf_new_from_file(cursor_definitions[i].filename, &error);
else
pixbuf = NULL;
if (error != NULL)
{
+ GDK_NOTE (CURSOR,
+ g_message ("failed to load %s: %s",
+ cursor_definitions[i].filename, error->message));
g_error_free(error);
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]