comparison src/gtknotify.c @ 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 d83f745c997b
children 5cda52915a1f
comparison
equal deleted inserted replaced
10874:65d3140f35fd 10875:a118e50116df
328 328
329 return data; 329 return data;
330 } 330 }
331 331
332 static gboolean 332 static gboolean
333 formatted_input_cb(GtkWidget *dialog, GdkEventKey *event, gpointer data) 333 formatted_input_cb(GtkWidget *win, GdkEventKey *event, gpointer data)
334 { 334 {
335 if (event->keyval == GDK_Escape) 335 if (event->keyval == GDK_Escape)
336 { 336 {
337 gtk_widget_destroy(dialog); 337 gaim_notify_close(GAIM_NOTIFY_FORMATTED, win);
338 338
339 return TRUE; 339 return TRUE;
340 } 340 }
341 341
342 return FALSE; 342 return FALSE;