summary refs log tree commit diff stats
path: root/src/fe-gtk/fe-gtk.h
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2014-02-15 11:50:22 -0500
committerTingPing <tingping@tingping.se>2014-02-15 11:50:22 -0500
commit22b5affbe61f8ba17fbc499bf93a2f7d378cc283 (patch)
tree1adda9cf1608d57d94e38a22d22aa7f1107cef11 /src/fe-gtk/fe-gtk.h
parentb245f2f79ea50ef4bf29c586c3e3da1b7a5cb0a6 (diff)
Use GRegex for channel list search
This adds support for Windows
Diffstat (limited to 'src/fe-gtk/fe-gtk.h')
-rw-r--r--src/fe-gtk/fe-gtk.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/fe-gtk/fe-gtk.h b/src/fe-gtk/fe-gtk.h
index 4e519d9c..fbdb6678 100644
--- a/src/fe-gtk/fe-gtk.h
+++ b/src/fe-gtk/fe-gtk.h
@@ -30,7 +30,6 @@
 
 #ifndef WIN32
 #include <sys/types.h>
-#include <regex.h>
 #endif
 
 #if defined(ENABLE_NLS) && !defined(_)
@@ -102,10 +101,8 @@ struct server_gui
 	gboolean chanlist_match_wants_channel;	/* match in channel name */
 	gboolean chanlist_match_wants_topic;	/* match in topic */
 
-#ifndef WIN32
-	regex_t chanlist_match_regex;	/* compiled regular expression here */
+	GRegex *chanlist_match_regex;	/* compiled regular expression here */
 	unsigned int have_regex;
-#endif
 
 	guint chanlist_users_found_count;	/* users total for all channels */
 	guint chanlist_users_shown_count;	/* users total for displayed channels */