[cheese] um-crop-area: Fix deprecated API usage
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese] um-crop-area: Fix deprecated API usage
- Date: Wed, 7 Jan 2015 15:41:16 +0000 (UTC)
commit 5741aa39afa6edd4585a1eba2857aa43bf04e456
Author: Rui Matos <tiagomatos gmail com>
Date: Wed Jan 7 16:13:14 2015 +0100
um-crop-area: Fix deprecated API usage
https://bugzilla.gnome.org/show_bug.cgi?id=742530
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 6a4327e..7695dcf 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]