diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2011-10-18 11:24:38 -0400 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2011-10-18 11:28:08 -0400 |
commit | a816e00ef769a3be12a053a29e41f3da1b91c492 (patch) | |
tree | b1995bc5f2cb014437a338e7bcdbac2860d6b255 /eel | |
parent | 0594aa1636ef960361cf60d00c58ab94c81ee5d4 (diff) | |
download | nautilus-a816e00ef769a3be12a053a29e41f3da1b91c492.tar.gz |
all: don't use deprecated GDK pointer methods
Use the new GdkDevice methods instead.
Diffstat (limited to 'eel')
-rw-r--r-- | eel/eel-editable-label.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/eel/eel-editable-label.c b/eel/eel-editable-label.c index b21b19bd4..223268506 100644 --- a/eel/eel-editable-label.c +++ b/eel/eel-editable-label.c @@ -1902,9 +1902,10 @@ eel_editable_label_motion (GtkWidget *widget, if ((event->state & GDK_BUTTON1_MASK) == 0) return FALSE; - gdk_window_get_pointer (gtk_widget_get_window (widget), - &x, &y, NULL); - + gdk_window_get_device_position (gtk_widget_get_window (widget), + event->device, + &x, &y, NULL); + get_layout_index (label, x, y, &index); eel_editable_label_select_region_index (label, |