[gnome-games] gnect: Replace deprecated gtk_widget_get_pointer with gdk_window_get_device_position
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] gnect: Replace deprecated gtk_widget_get_pointer with gdk_window_get_device_position
- Date: Fri, 30 Dec 2011 04:01:30 +0000 (UTC)
commit 28e2a1a7985a583b03f0a1d1aa581705c0380542
Author: Robert Ancell <robert ancell canonical com>
Date: Fri Dec 30 14:26:36 2011 +1100
gnect: Replace deprecated gtk_widget_get_pointer with gdk_window_get_device_position
gnect/src/main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnect/src/main.c b/gnect/src/main.c
index 4463d8c..7c7e03f 100644
--- a/gnect/src/main.c
+++ b/gnect/src/main.c
@@ -1163,7 +1163,7 @@ on_button_press (GtkWidget * w, GdkEventButton * e, gpointer data)
if (gameover && !timeout) {
blink_winner (2);
} else if (is_player_human () && !timeout) {
- gtk_widget_get_pointer (w, &x, &y);
+ gdk_window_get_device_position (gtk_widget_get_window (w), e->device, &x, &y, NULL);
game_process_move (gfx_get_column (x));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]