From 67f706f8e1a578f9925f95b7ccb003f0cc1043e6 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 8 May 2013 21:10:24 -0700 Subject: [PATCH] psppire-cell-renderer-button: Don't use gdk_window_coords_to_parent(). It was introduced in GDK 2.22, which is newer than we require. Reported by John Darrington. --- src/ui/gui/psppire-cell-renderer-button.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ui/gui/psppire-cell-renderer-button.c b/src/ui/gui/psppire-cell-renderer-button.c index c1930518d7..d4071cd71e 100644 --- a/src/ui/gui/psppire-cell-renderer-button.c +++ b/src/ui/gui/psppire-cell-renderer-button.c @@ -346,9 +346,11 @@ psppire_cell_renderer_button_press_event (GtkButton *button, parent window, because the normal GObject signal propagation mechanism won't do it for us. (This might be a hint that we're doing this wrong.) */ - gdk_window_coords_to_parent (event->window, - event->x, event->y, - &event->x, &event->y); + gint x, y; + + gdk_window_get_position (event->window, &x, &y); + event->x += x; + event->y += y; g_signal_stop_emission_by_name (button, "button-press-event"); return FALSE; } -- 2.30.2