aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-12-01 04:27:22 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-12-01 04:27:22 +0800
commitbf1d0fb988392de9d355fa74cc9c471e8cf13a20 (patch)
tree8d2996c9b80a808244f3c37784589c6ece034673 /calendar/gui
parent0c751ff6dbc9a50d4d956f765334e1a6d0d6bf80 (diff)
downloadgsoc2013-evolution-bf1d0fb988392de9d355fa74cc9c471e8cf13a20.tar
gsoc2013-evolution-bf1d0fb988392de9d355fa74cc9c471e8cf13a20.tar.gz
gsoc2013-evolution-bf1d0fb988392de9d355fa74cc9c471e8cf13a20.tar.bz2
gsoc2013-evolution-bf1d0fb988392de9d355fa74cc9c471e8cf13a20.tar.lz
gsoc2013-evolution-bf1d0fb988392de9d355fa74cc9c471e8cf13a20.tar.xz
gsoc2013-evolution-bf1d0fb988392de9d355fa74cc9c471e8cf13a20.tar.zst
gsoc2013-evolution-bf1d0fb988392de9d355fa74cc9c471e8cf13a20.zip
Avoid gdk_display_get_pointer().
Use gdk_device_get_position().
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/e-calendar-view.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/calendar/gui/e-calendar-view.c b/calendar/gui/e-calendar-view.c
index 9c21a18739..bc3dc89618 100644
--- a/calendar/gui/e-calendar-view.c
+++ b/calendar/gui/e-calendar-view.c
@@ -1888,21 +1888,25 @@ e_calendar_view_move_tip (GtkWidget *widget,
{
GtkAllocation allocation;
GtkRequisition requisition;
- gint w, h;
+ GdkDisplay *display;
GdkScreen *screen;
GdkScreen *pointer_screen;
- gint monitor_num, px, py;
GdkRectangle monitor;
-
- screen = gtk_widget_get_screen (widget);
+ GdkDeviceManager *device_manager;
+ GdkDevice *pointer;
+ gint monitor_num, px, py;
+ gint w, h;
gtk_widget_get_preferred_size (widget, &requisition, NULL);
w = requisition.width;
h = requisition.height;
- gdk_display_get_pointer (
- gdk_screen_get_display (screen),
- &pointer_screen, &px, &py, NULL);
+ screen = gtk_widget_get_screen (widget);
+ display = gdk_screen_get_display (screen);
+ device_manager = gdk_display_get_device_manager (display);
+ pointer = gdk_device_manager_get_client_pointer (device_manager);
+
+ gdk_device_get_position (pointer, &pointer_screen, &px, &py);
if (pointer_screen != screen) {
px = x;
py = y;