[clutter/clutter-1.22: 3/4] gdk: Use non-deprecated GdkCursor API
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/clutter-1.22: 3/4] gdk: Use non-deprecated GdkCursor API
- Date: Wed, 3 Dec 2014 14:56:15 +0000 (UTC)
commit 54efcf0e903e50ce927d3b22aa1edfa7dfa1744a
Author: Emmanuele Bassi <ebassi gnome org>
Date: Wed Dec 3 12:11:55 2014 +0000
gdk: Use non-deprecated GdkCursor API
The non-display safe variant has been deprecated in GTK+ 3.15.
clutter/gdk/clutter-stage-gdk.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/clutter/gdk/clutter-stage-gdk.c b/clutter/gdk/clutter-stage-gdk.c
index bac1be1..c0188e0 100644
--- a/clutter/gdk/clutter-stage-gdk.c
+++ b/clutter/gdk/clutter-stage-gdk.c
@@ -228,7 +228,7 @@ clutter_stage_gdk_realize (ClutterStageWindow *stage_window)
if (!cursor_visible)
{
if (stage_gdk->blank_cursor == NULL)
- stage_gdk->blank_cursor = gdk_cursor_new (GDK_BLANK_CURSOR);
+ stage_gdk->blank_cursor = gdk_cursor_new_for_display (backend_gdk->display,
GDK_BLANK_CURSOR);
attributes.cursor = stage_gdk->blank_cursor;
}
@@ -347,7 +347,11 @@ clutter_stage_gdk_set_cursor_visible (ClutterStageWindow *stage_window,
else
{
if (stage_gdk->blank_cursor == NULL)
- stage_gdk->blank_cursor = gdk_cursor_new (GDK_BLANK_CURSOR);
+ {
+ GdkDisplay *display = clutter_gdk_get_default_display ();
+
+ stage_gdk->blank_cursor = gdk_cursor_new_for_display (display, GDK_BLANK_CURSOR);
+ }
gdk_window_set_cursor (stage_gdk->window, stage_gdk->blank_cursor);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]