diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-05-09 22:50:02 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-07-26 01:45:06 -0400 |
commit | 5c2759af3c602149b76ddf968bcd94b7e6e8a57c (patch) | |
tree | 027e6c0ca1ea4ec05f33c5c7cd665c7928f5eb76 /gtk/gtktreeviewcolumn.c | |
parent | b3fb1aefd8b285874b0a744af024a16d3958e402 (diff) | |
download | gtk+-5c2759af3c602149b76ddf968bcd94b7e6e8a57c.tar.gz |
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
Diffstat (limited to 'gtk/gtktreeviewcolumn.c')
-rw-r--r-- | gtk/gtktreeviewcolumn.c | 5 |
1 files changed, 3 insertions, 2 deletions
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); |