summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Iofel <iofelben@gmail.com>2015-11-18 15:34:58 -0500
committerBen Iofel <iofelben@gmail.com>2015-11-18 15:36:03 -0500
commit99334e065d05bdbf9abe4bcaf217c49e7a89f357 (patch)
tree51d851452cee26205bde4d7bd1cddb2103b28f79
parent8dd0bdbf3f23ab5d9b285a9211a7338e1e438cda (diff)
downloadglade-99334e065d05bdbf9abe4bcaf217c49e7a89f357.tar.gz
Replace use of deprecated gdk_cursor_new
use gdk_cursor_new_from_name instead
-rw-r--r--gladeui/glade-cursor.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/gladeui/glade-cursor.c b/gladeui/glade-cursor.c
index 5ebc7d92..812b56f5 100644
--- a/gladeui/glade-cursor.c
+++ b/gladeui/glade-cursor.c
@@ -156,20 +156,22 @@ glade_cursor_init (void)
{
gchar *path;
GError *error = NULL;
+ GdkDisplay *display;
cursor = g_new0 (GladeCursor, 1);
+ display = gdk_display_get_default ();
cursor->selector = NULL;
- cursor->add_widget = gdk_cursor_new (GDK_PLUS);
- cursor->resize_top_left = gdk_cursor_new (GDK_TOP_LEFT_CORNER);
- cursor->resize_top_right = gdk_cursor_new (GDK_TOP_RIGHT_CORNER);
- cursor->resize_bottom_left = gdk_cursor_new (GDK_BOTTOM_LEFT_CORNER);
- cursor->resize_bottom_right = gdk_cursor_new (GDK_BOTTOM_RIGHT_CORNER);
- cursor->resize_left = gdk_cursor_new (GDK_LEFT_SIDE);
- cursor->resize_right = gdk_cursor_new (GDK_RIGHT_SIDE);
- cursor->resize_top = gdk_cursor_new (GDK_TOP_SIDE);
- cursor->resize_bottom = gdk_cursor_new (GDK_BOTTOM_SIDE);
- cursor->drag = gdk_cursor_new (GDK_FLEUR);
+ cursor->add_widget = gdk_cursor_new_from_name (display, "crosshair");
+ cursor->resize_top_left = gdk_cursor_new_from_name (display, "nw-resize");
+ cursor->resize_top_right = gdk_cursor_new_from_name (display, "ne-resize");
+ cursor->resize_bottom_left = gdk_cursor_new_from_name (display, "sw-resize");
+ cursor->resize_bottom_right = gdk_cursor_new_from_name (display, "se-resize");
+ cursor->resize_left = gdk_cursor_new_from_name (display, "w-resize");
+ cursor->resize_right = gdk_cursor_new_from_name (display, "e-resize");
+ cursor->resize_top = gdk_cursor_new_from_name (display, "n-resize");
+ cursor->resize_bottom = gdk_cursor_new_from_name (display, "s-resize");
+ cursor->drag = gdk_cursor_new_from_name (display, "move");
cursor->add_widget_pixbuf = NULL;
/* load "add" cursor pixbuf */