From ab827f639671b79f2b802b19f86e937a92612ad7 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Mon, 13 Oct 2003 16:57:57 +0000 Subject: *** empty log message *** --- lib/egg/Makefile.am | 1 + lib/egg/egg-editable-toolbar.c | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/egg') diff --git a/lib/egg/Makefile.am b/lib/egg/Makefile.am index 9f55158f9..53a2dbf26 100644 --- a/lib/egg/Makefile.am +++ b/lib/egg/Makefile.am @@ -1,6 +1,7 @@ INCLUDES = \ $(EPIPHANY_DEPENDENCY_CFLAGS) \ $(WARN_CFLAGS) \ + -DCURSOR_DIR=\"$(pkgdatadir)\" \ -DGTK_DISABLE_DEPRECATED \ -DGDK_DISABLE_DEPRECATED \ -DG_DISABLE_DEPRECATED diff --git a/lib/egg/egg-editable-toolbar.c b/lib/egg/egg-editable-toolbar.c index fdc43eee8..f04746164 100755 --- a/lib/egg/egg-editable-toolbar.c +++ b/lib/egg/egg-editable-toolbar.c @@ -361,10 +361,14 @@ set_drag_cursor (GtkWidget *widget) if (widget->window) { GdkCursor *cursor; + GdkPixbuf *pixbuf; - cursor = gdk_cursor_new (GDK_FLEUR); + pixbuf = gdk_pixbuf_new_from_file (CURSOR_DIR "/art/hand-open.png", NULL); + cursor = gdk_cursor_new_from_pixbuf (gdk_display_get_default (), + pixbuf, 0, 0); gdk_window_set_cursor (widget->window, cursor); gdk_cursor_unref (cursor); + g_object_unref (pixbuf); } } -- cgit v1.2.3