psppire-cell-renderer-button: Do not update 'event->window'.
authorBen Pfaff <blp@cs.stanford.edu>
Thu, 9 May 2013 04:07:39 +0000 (21:07 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Thu, 9 May 2013 04:07:39 +0000 (21:07 -0700)
Commit 5b59146f8d0 (psppire-cell-renderer-button: Translate coords before
propagating event.) caused GDK and GTK+ warnings and criticals and a crash
if the scenario described in the bug report were repeated a number of
times.  This change appears to fix the problem.

Reported by John Darrington.
Bug #38922.

src/ui/gui/psppire-cell-renderer-button.c

index f312a01900e06bf46dd3b626c59269f91527b550..c1930518d73e3b80d84082a832e73ce637113265 100644 (file)
@@ -349,7 +349,6 @@ psppire_cell_renderer_button_press_event (GtkButton      *button,
       gdk_window_coords_to_parent (event->window,
                                    event->x, event->y,
                                    &event->x, &event->y);
-      event->window = gdk_window_get_parent (event->window);
       g_signal_stop_emission_by_name (button, "button-press-event");
       return FALSE;
     }