From 5c2759af3c602149b76ddf968bcd94b7e6e8a57c Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 9 May 2015 22:50:02 -0400 Subject: Use standard cursor names This changes GTK+ to use gdk_cursor_new_from_name() with the 'standard' css names, instead of GdkCursorType. https://bugzilla.gnome.org/show_bug.cgi?id=652085 --- gtk/gtktreeviewcolumn.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gtk/gtktreeviewcolumn.c') diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c index d3fb33dce9..f3d50ccc0f 100644 --- a/gtk/gtktreeviewcolumn.c +++ b/gtk/gtktreeviewcolumn.c @@ -1342,6 +1342,7 @@ _gtk_tree_view_column_realize_button (GtkTreeViewColumn *column) GdkWindowAttr attr; guint attributes_mask; gboolean rtl; + GdkDisplay *display; tree_view = (GtkTreeView *)priv->tree_view; rtl = (gtk_widget_get_direction (priv->tree_view) == GTK_TEXT_DIR_RTL); @@ -1362,8 +1363,8 @@ _gtk_tree_view_column_realize_button (GtkTreeViewColumn *column) GDK_POINTER_MOTION_MASK | GDK_KEY_PRESS_MASK); attributes_mask = GDK_WA_CURSOR | GDK_WA_X | GDK_WA_Y; - attr.cursor = gdk_cursor_new_for_display - (gdk_window_get_display (_gtk_tree_view_get_header_window (tree_view)), GDK_SB_H_DOUBLE_ARROW); + display = gdk_window_get_display (_gtk_tree_view_get_header_window (tree_view)); + attr.cursor = gdk_cursor_new_from_name (display, "col-resize"); attr.y = 0; attr.width = TREE_VIEW_DRAG_WIDTH; attr.height = _gtk_tree_view_get_header_height (tree_view); -- cgit v1.2.1