Mercurial > pidgin
changeset 11473:171c34a04a9f
[gaim-migrate @ 13714]
Commenting my code just made people bug me to fix it...
committer: Tailor Script <tailor@pidgin.im>
author | Gary Kramlich <grim@reaperworld.com> |
---|---|
date | Fri, 09 Sep 2005 03:41:50 +0000 |
parents | 6aa833b18a05 |
children | 7e9635b73ed6 |
files | src/gtkdebug.c |
diffstat | 1 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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 <regex.h> #endif /* HAVE_REGEX_H */ +#include <gdk/gdkkeysyms.h> + 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))) {