Mercurial > pidgin.yaz
changeset 10875:a118e50116df
[gaim-migrate @ 12566]
Closing the window using the Excape key wasn't cleaning up, and consequently causing a crash on logout or disconnection
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Tue, 26 Apr 2005 04:35:22 +0000 |
parents | 65d3140f35fd |
children | 4fdc8a1102c0 |
files | src/gtknotify.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtknotify.c Tue Apr 26 04:03:20 2005 +0000 +++ b/src/gtknotify.c Tue Apr 26 04:35:22 2005 +0000 @@ -330,11 +330,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; }