[libwnck/wip/muktupavels/gnome-3-18: 2/8] wnckprop: don't use deprecated gdk_cursor_new
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libwnck/wip/muktupavels/gnome-3-18: 2/8] wnckprop: don't use deprecated gdk_cursor_new
- Date: Tue, 28 Jun 2016 09:03:18 +0000 (UTC)
commit 5febc63b0b15d332464876ee5eef8682b393d125
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Tue Mar 22 15:40:26 2016 +0200
wnckprop: don't use deprecated gdk_cursor_new
libwnck/wnckprop.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/libwnck/wnckprop.c b/libwnck/wnckprop.c
index dcad811..9f43f8a 100644
--- a/libwnck/wnckprop.c
+++ b/libwnck/wnckprop.c
@@ -1792,6 +1792,7 @@ target_filter (GdkXEvent *gdk_xevent,
static gboolean
get_target (gpointer data)
{
+ GdkDisplay *display;
GdkGrabStatus status;
GdkDeviceManager *dev_manager;
GdkDevice *device;
@@ -1799,12 +1800,13 @@ get_target (gpointer data)
GdkWindow *root;
GList *devices, *l;
- dev_manager = gdk_display_get_device_manager (gdk_display_get_default ());
+ display = gdk_display_get_default ();
+ dev_manager = gdk_display_get_device_manager (display);
root = gdk_get_default_root_window ();
gdk_window_add_filter (root, (GdkFilterFunc) target_filter, NULL);
- cross = gdk_cursor_new (GDK_CROSS);
+ cross = gdk_cursor_new_for_display (display, GDK_CROSS);
device = gdk_device_manager_get_client_pointer (dev_manager);
status = gdk_device_grab (device, root, GDK_OWNERSHIP_WINDOW, TRUE,
GDK_BUTTON_PRESS_MASK, cross, GDK_CURRENT_TIME);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]