From 5304b565cd6192c80bae5473d3ac2364dc0de7bb Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Thu, 3 Nov 2005 12:12:45 +0000 Subject: R data/art/hand-open.png: 2005-11-03 Christian Persch * data/art/Makefile.am: R data/art/hand-open.png: * lib/egg/egg-toolbar-editor.c: (drag_data_get_cb), (set_drag_cursor): Use a gtk stock cursor (GDK_HAND2) instead of our own, un-themed one. --- lib/egg/egg-toolbar-editor.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'lib/egg') diff --git a/lib/egg/egg-toolbar-editor.c b/lib/egg/egg-toolbar-editor.c index 4cb7d0ccc..46ac89c48 100755 --- a/lib/egg/egg-toolbar-editor.c +++ b/lib/egg/egg-toolbar-editor.c @@ -308,7 +308,8 @@ drag_data_get_cb (GtkWidget *widget, target = g_object_get_data (G_OBJECT (widget), "egg-item-name"); g_return_if_fail (target != NULL); - gtk_selection_data_set (selection_data, selection_data->target, 8, target, strlen (target)); + gtk_selection_data_set (selection_data, selection_data->target, 8, + (const guchar *) target, strlen (target)); } static gchar * @@ -341,14 +342,12 @@ static void set_drag_cursor (GtkWidget *widget) { GdkCursor *cursor; - GdkPixbuf *pixbuf; - - pixbuf = gdk_pixbuf_new_from_file (CURSOR_DIR "/hand-open.png", NULL); - cursor = gdk_cursor_new_from_pixbuf (gdk_display_get_default (), pixbuf, 12, 12); + + /* FIXME multihead */ + cursor = gdk_cursor_new (GDK_HAND2); gdk_window_set_cursor (widget->window, cursor); gdk_cursor_unref (cursor); - g_object_unref (pixbuf); } static void -- cgit v1.2.3