# HG changeset patch # User Gary Kramlich # Date 1126237310 0 # Node ID 171c34a04a9ffb8c9dbd1d286eb8c64e4a660cd7 # Parent 6aa833b18a0587a04f93d66e2952b97b094a67a9 [gaim-migrate @ 13714] Commenting my code just made people bug me to fix it... committer: Tailor Script diff -r 6aa833b18a05 -r 171c34a04a9f src/gtkdebug.c --- a/src/gtkdebug.c Fri Sep 09 03:07:15 2005 +0000 +++ b/src/gtkdebug.c Fri Sep 09 03:41:50 2005 +0000 @@ -40,6 +40,8 @@ # include #endif /* HAVE_REGEX_H */ +#include + typedef struct { GtkWidget *window; @@ -561,11 +563,7 @@ static void regex_key_release_cb(GtkWidget *w, GdkEventKey *e, DebugWindow *win) { - /** - * GDK_Return is defined in gdkkeysyms.h as 0xFF0D, but this file is not - * included by default, so we just use that value here directly. - */ - if(e->keyval == 0xFF0D && + if(e->keyval == GDK_Return && GTK_WIDGET_IS_SENSITIVE(win->filter) && !gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(win->filter))) {