From: John Darrington Date: Thu, 9 May 2013 01:49:27 +0000 (+0200) Subject: Revert "psppire-cell-renderer-button: Translate coords before propagating event." X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09f6f854addb3226177a3bf8de4b05f9c9b2c65e;p=pspp Revert "psppire-cell-renderer-button: Translate coords before propagating event." This reverts commit 5b59146f8d060754b14eba415dcc9066d8bc7b02. --- diff --git a/src/ui/gui/psppire-cell-renderer-button.c b/src/ui/gui/psppire-cell-renderer-button.c index f312a01900..8b9e9076dc 100644 --- a/src/ui/gui/psppire-cell-renderer-button.c +++ b/src/ui/gui/psppire-cell-renderer-button.c @@ -340,16 +340,7 @@ psppire_cell_renderer_button_press_event (GtkButton *button, /* Allow right-click events to propagate upward in the widget hierarchy. Otherwise right-click menus, that trigger on a button-press-event on the containing PsppSheetView, will pop up if the button is rendered as - a facade but not if the button widget exists. - - We have to translate the event's data by hand to be relative to the - 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); - event->window = gdk_window_get_parent (event->window); + a facade but not if the button widget exists. */ g_signal_stop_emission_by_name (button, "button-press-event"); return FALSE; }