diff options
author | Rui Matos <tiagomatos@gmail.com> | 2015-01-07 16:13:14 +0100 |
---|---|---|
committer | Rui Matos <tiagomatos@gmail.com> | 2015-01-07 16:15:47 +0100 |
commit | 5741aa39afa6edd4585a1eba2857aa43bf04e456 (patch) | |
tree | 533d45af37fd122cf322ff0595eced60fb2ff3be | |
parent | 08ff9ff6999157f25b10676fdb088b04ac6f190e (diff) |
um-crop-area: Fix deprecated API usage
https://bugzilla.gnome.org/show_bug.cgi?id=742530
-rw-r--r-- | libcheese/um-crop-area.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libcheese/um-crop-area.c b/libcheese/um-crop-area.c index 6a4327eb..7695dcf1 100644 --- a/libcheese/um-crop-area.c +++ b/libcheese/um-crop-area.c @@ -471,7 +471,8 @@ update_cursor (UmCropArea *area, } if (cursor_type != priv->current_cursor) { - GdkCursor *cursor = gdk_cursor_new (cursor_type); + GdkCursor *cursor = gdk_cursor_new_for_display (gtk_widget_get_display (GTK_WIDGET (area)), + cursor_type); gdk_window_set_cursor (gtk_widget_get_window (GTK_WIDGET (area)), cursor); g_object_unref (cursor); priv->current_cursor = cursor_type; |