[rhythmbox] use gdk_event_get_device instead of gdk_event_get_source_device
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] use gdk_event_get_device instead of gdk_event_get_source_device
- Date: Sat, 13 Apr 2013 05:07:45 +0000 (UTC)
commit 7293b612f96d03f8cc08741bd669ccf21c19b214
Author: Jonathan Matthew <jonathan d14n org>
Date: Sat Apr 13 14:59:34 2013 +1000
use gdk_event_get_device instead of gdk_event_get_source_device
We don't actually care about physical devices vs virtual devices,
we just want to know where the pointer was. Now that we're using
XI2 (see commit f84a33d), requesting the physical device position
causes XI_BadDevice errors.
https://bugzilla.gnome.org/show_bug.cgi?id=697915
widgets/gossip-cell-renderer-expander.c | 2 +-
widgets/rb-cell-renderer-pixbuf.c | 2 +-
widgets/rb-cell-renderer-rating.c | 2 +-
widgets/rb-rating.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/widgets/gossip-cell-renderer-expander.c b/widgets/gossip-cell-renderer-expander.c
index 04b0ed7..3192e99 100644
--- a/widgets/gossip-cell-renderer-expander.c
+++ b/widgets/gossip-cell-renderer-expander.c
@@ -324,7 +324,7 @@ gossip_cell_renderer_expander_activate (GtkCellRenderer *cell,
path = gtk_tree_path_new_from_string (path_string);
gdk_window_get_device_position (gtk_widget_get_window (widget),
- gdk_event_get_source_device (event),
+ gdk_event_get_device (event),
&mouse_x,
&mouse_y,
NULL);
diff --git a/widgets/rb-cell-renderer-pixbuf.c b/widgets/rb-cell-renderer-pixbuf.c
index 08fdd97..874efa8 100644
--- a/widgets/rb-cell-renderer-pixbuf.c
+++ b/widgets/rb-cell-renderer-pixbuf.c
@@ -133,7 +133,7 @@ rb_cell_renderer_pixbuf_activate (GtkCellRenderer *cell,
}
gdk_window_get_device_position (gtk_widget_get_window (widget),
- gdk_event_get_source_device (event),
+ gdk_event_get_device (event),
&mouse_x,
&mouse_y,
NULL);
diff --git a/widgets/rb-cell-renderer-rating.c b/widgets/rb-cell-renderer-rating.c
index 887fbe7..8be208c 100644
--- a/widgets/rb-cell-renderer-rating.c
+++ b/widgets/rb-cell-renderer-rating.c
@@ -304,7 +304,7 @@ rb_cell_renderer_rating_activate (GtkCellRenderer *cell,
g_return_val_if_fail (RB_IS_CELL_RENDERER_RATING (cellrating), FALSE);
gdk_window_get_device_position (gtk_widget_get_window (widget),
- gdk_event_get_source_device (event),
+ gdk_event_get_device (event),
&mouse_x,
&mouse_y,
NULL);
diff --git a/widgets/rb-rating.c b/widgets/rb-rating.c
index f72bb00..2a6a00b 100644
--- a/widgets/rb-rating.c
+++ b/widgets/rb-rating.c
@@ -433,7 +433,7 @@ rb_rating_button_press_cb (GtkWidget *widget,
rating = RB_RATING (widget);
gdk_window_get_device_position (gtk_widget_get_window (widget),
- gdk_event_get_source_device ((GdkEvent *)event),
+ gdk_event_get_device ((GdkEvent *)event),
&mouse_x, &mouse_y, NULL);
gtk_widget_get_allocation (widget, &allocation);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]