gaim/gaim

Parents ba05af796c8a
Children 5c5ef0825ad3
Closing the window using the Excape key wasn't cleaning up, and consequently causing a crash on logout or disconnection
--- a/src/gtknotify.c Mon Apr 25 23:53:16 2005 -0400
+++ b/src/gtknotify.c Tue Apr 26 00:33:54 2005 -0400
@@ -279,11 +279,11 @@
}
static gboolean
-formatted_input_cb(GtkWidget *dialog, GdkEventKey *event, gpointer data)
+formatted_input_cb(GtkWidget *win, GdkEventKey *event, gpointer data)
{
if (event->keyval == GDK_Escape)
{
- gtk_widget_destroy(dialog);
+ gaim_notify_close(GAIM_NOTIFY_FORMATTED, win);
return TRUE;
}