comparison src/gtkdebug.c @ 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 b7978afe81d0
children c342eb6e8cd3
comparison
equal deleted inserted replaced
11472:6aa833b18a05 11473:171c34a04a9f
38 38
39 #ifdef HAVE_REGEX_H 39 #ifdef HAVE_REGEX_H
40 # include <regex.h> 40 # include <regex.h>
41 #endif /* HAVE_REGEX_H */ 41 #endif /* HAVE_REGEX_H */
42 42
43 #include <gdk/gdkkeysyms.h>
44
43 typedef struct 45 typedef struct
44 { 46 {
45 GtkWidget *window; 47 GtkWidget *window;
46 GtkWidget *text; 48 GtkWidget *text;
47 49
559 regex_compile(win); 561 regex_compile(win);
560 } 562 }
561 563
562 static void 564 static void
563 regex_key_release_cb(GtkWidget *w, GdkEventKey *e, DebugWindow *win) { 565 regex_key_release_cb(GtkWidget *w, GdkEventKey *e, DebugWindow *win) {
564 /** 566 if(e->keyval == GDK_Return &&
565 * GDK_Return is defined in gdkkeysyms.h as 0xFF0D, but this file is not
566 * included by default, so we just use that value here directly.
567 */
568 if(e->keyval == 0xFF0D &&
569 GTK_WIDGET_IS_SENSITIVE(win->filter) && 567 GTK_WIDGET_IS_SENSITIVE(win->filter) &&
570 !gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(win->filter))) 568 !gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(win->filter)))
571 { 569 {
572 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(win->filter), TRUE); 570 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(win->filter), TRUE);
573 } 571 }