# HG changeset patch # User Nathan Walp # Date 1068187207 0 # Node ID 3a5f89ba0da5c477ce23348d04b5774285848351 # Parent 50f4386a82626bba25d4de7261b18e982fbe562c [gaim-migrate @ 8068] we'll see if anyone complains about this committer: Tailor Script diff -r 50f4386a8262 -r 3a5f89ba0da5 src/gtknotify.c --- a/src/gtknotify.c Fri Nov 07 03:27:45 2003 +0000 +++ b/src/gtknotify.c Fri Nov 07 06:40:07 2003 +0000 @@ -22,6 +22,8 @@ */ #include "gtkinternal.h" +#include + #include "connection.h" #include "debug.h" #include "prefs.h" @@ -259,6 +261,17 @@ return data; } +static +gboolean formatted_input_cb(GtkWidget *dialog, + GdkEventKey *event, gpointer data) +{ + if (event->keyval == GDK_Escape) { + gtk_object_destroy(GTK_OBJECT(dialog)); + return TRUE; + } + return FALSE; +} + static void * gaim_gtk_notify_formatted(const char *title, const char *primary, const char *secondary, const char *text, @@ -325,6 +338,9 @@ g_signal_connect_swapped(G_OBJECT(button), "clicked", G_CALLBACK(formatted_close_cb), window); + g_signal_connect(G_OBJECT(window), "key_press_event", + G_CALLBACK(formatted_input_cb), NULL); + /* Add the text to the gtkimhtml */ if (gaim_prefs_get_bool("/gaim/gtk/conversations/ignore_colors"))