Mercurial > pidgin.yaz
changeset 8337:65ae6930b45a
[gaim-migrate @ 9061]
Eww. Bad code. Bad.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 25 Feb 2004 21:56:10 +0000 |
parents | 4e958012724a |
children | 354bba6ad254 |
files | src/gtknotify.c |
diffstat | 1 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtknotify.c Wed Feb 25 21:51:24 2004 +0000 +++ b/src/gtknotify.c Wed Feb 25 21:56:10 2004 +0000 @@ -263,14 +263,16 @@ return data; } -static -gboolean formatted_input_cb(GtkWidget *dialog, - GdkEventKey *event, gpointer data) +static gboolean +formatted_input_cb(GtkWidget *dialog, GdkEventKey *event, gpointer data) { - if (event->keyval == GDK_Escape) { - gtk_object_destroy(GTK_OBJECT(dialog)); + if (event->keyval == GDK_Escape) + { + gtk_widget_destroy(dialog); + return TRUE; } + return FALSE; }