xscanimage patch: preview segfault, part 2

Matto Marjanovic (maddog@mir.com)
Mon, 4 May 1998 00:32:59 -0400 (EDT)

One more little patch, to fix segfaults when the Preview window is
destroyed. This patch removes the connection to the "delete_event"
signal, leaving only "destroy" connected. Essentially, when the
window was deleted via the window manager, preview_window_destroy()
would be called twice, once as a regular signal handler, and once
as an event handler (which caused the segfault).

Hope this is it...

-matt m.

--- xscanimage.c-dist Sun Apr 26 11:46:31 1998
+++ xscanimage.c Mon May 4 00:28:21 1998
@@ -493,10 +493,6 @@
"destroy",
GTK_SIGNAL_FUNC (preview_window_destroyed),
widget);
- gtk_signal_connect (GTK_OBJECT (scan_win.preview->top),
- "delete_event",
- GTK_SIGNAL_FUNC (preview_window_destroyed),
- widget);
}
else
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (widget), FALSE);

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com