[gtk+] tooltip: Don't use deprecated APIs
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] tooltip: Don't use deprecated APIs
- Date: Mon, 27 Dec 2010 01:09:58 +0000 (UTC)
commit 45d98d108ebadd1164a073b019214707f5d168cc
Author: Benjamin Otte <otte redhat com>
Date: Mon Dec 27 01:05:40 2010 +0100
tooltip: Don't use deprecated APIs
gtk/gtktooltip.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c
index 552a63b..3520128 100644
--- a/gtk/gtktooltip.c
+++ b/gtk/gtktooltip.c
@@ -532,9 +532,13 @@ gtk_tooltip_trigger_tooltip_query (GdkDisplay *display)
gint x, y;
GdkWindow *window;
GdkEvent event;
+ GdkDevice *device;
/* Trigger logic as if the mouse moved */
- window = gdk_display_get_window_at_pointer (display, &x, &y);
+ device = gdk_device_manager_get_client_pointer (gdk_display_get_device_manager (display));
+ window = gdk_display_get_window_at_device_position (display,
+ device,
+ &x, &y);
if (!window)
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]