[libegg] spreadtable: Avoid deprecated gtk_widget_get_pointer().
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libegg] spreadtable: Avoid deprecated gtk_widget_get_pointer().
- Date: Fri, 18 Nov 2011 12:16:19 +0000 (UTC)
commit 9d2d40c259674fc85eee8587b63a493d9b71ed0e
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Nov 18 13:16:13 2011 +0100
spreadtable: Avoid deprecated gtk_widget_get_pointer().
libegg/spreadtable/eggspreadtablednd.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/libegg/spreadtable/eggspreadtablednd.c b/libegg/spreadtable/eggspreadtablednd.c
index b07715a..1c475ec 100644
--- a/libegg/spreadtable/eggspreadtablednd.c
+++ b/libegg/spreadtable/eggspreadtablednd.c
@@ -975,12 +975,17 @@ set_drag_icon (GtkWidget *widget,
GtkStyleContext *style;
GdkPixbuf *pixbuf;
gint hot_x, hot_y;
+ GdkModifierType modifier_mask;
/* XXX Force allocate here ? need to absolutely have an allocated widget
* for this to work (gtk_widget_draw() needs that). */
gtk_widget_get_allocation (widget, &allocation);
- gtk_widget_get_pointer (widget, &hot_x, &hot_y);
+
+ gdk_window_get_device_position(
+ gtk_widget_get_window (widget),
+ gtk_get_current_event_device (),
+ &hot_x, &hot_y, &modifier_mask);
surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, allocation.width, allocation.height);
cr = cairo_create (surface);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]