summary refs log tree commit diff stats
path: root/src/fe-gtk/xtext.c
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-10-21 03:03:38 +0200
committerBerke Viktor <bviktor@hexchat.org>2012-10-21 03:03:38 +0200
commit0c04cfed7f8c4bfe8839374171236e684a9df437 (patch)
treec85f26f84e0c75552e302eadffc35abaa9140f5f /src/fe-gtk/xtext.c
parentef18ded8279cc484194cac897cea5ab634ead07a (diff)
Make modifier buttons truly abstract
Diffstat (limited to 'src/fe-gtk/xtext.c')
-rw-r--r--src/fe-gtk/xtext.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fe-gtk/xtext.c b/src/fe-gtk/xtext.c
index 23fb0dff..63abcaca 100644
--- a/src/fe-gtk/xtext.c
+++ b/src/fe-gtk/xtext.c
@@ -71,6 +71,7 @@
 #include "../common/xchatc.h"
 #include "fe-gtk.h"
 #include "xtext.h"
+#include "fkeys.h"
 
 #define charlen(str) g_utf8_skip[*(guchar *)(str)]
 
@@ -2005,7 +2006,7 @@ gtk_xtext_check_mark_stamp (GtkXText *xtext, GdkModifierType mask)
 {
 	gboolean redraw = FALSE;
 
-	if (mask & GDK_SHIFT_MASK || prefs.autocopy_stamp)
+	if (mask & STATE_SHIFT || prefs.autocopy_stamp)
 	{
 		if (!xtext->mark_stamp)
 		{
@@ -2255,7 +2256,7 @@ gtk_xtext_button_release (GtkWidget * widget, GdkEventButton * event)
 		if (xtext->buffer->last_ent_start)
 		{
 			xtext->color_paste = FALSE;
-			if (event->state & GDK_CONTROL_MASK || prefs.autocopy_color)
+			if (event->state & STATE_CTRL || prefs.autocopy_color)
 				xtext->color_paste = TRUE;
 			if (prefs.autocopy_text)
 			{