diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-07-10 10:10:11 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-07-10 10:12:02 -0400 |
commit | 34245515e532017653b5b84132654734b4d977de (patch) | |
tree | 081de46063d2d833c4bf2af8cf32b19029a3a257 /gtk/gtkgesturesingle.c | |
parent | 562a942f9964e95d036e0e148301d3c7e81f3095 (diff) | |
download | gtk+-34245515e532017653b5b84132654734b4d977de.tar.gz |
Add a 'touchscreen' debug flag
This has the same effect as the GTK_TEST_TOUCHSCREEN environment
variable, but can be toggled at runtime.
Diffstat (limited to 'gtk/gtkgesturesingle.c')
-rw-r--r-- | gtk/gtkgesturesingle.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkgesturesingle.c b/gtk/gtkgesturesingle.c index d33f190292..5d6507e83b 100644 --- a/gtk/gtkgesturesingle.c +++ b/gtk/gtkgesturesingle.c @@ -39,6 +39,7 @@ #include "gtkgesturesingleprivate.h" #include "gtkprivate.h" #include "gtkintl.h" +#include "gtkdebug.h" typedef struct _GtkGestureSinglePrivate GtkGestureSinglePrivate; @@ -301,7 +302,8 @@ gtk_gesture_single_init (GtkGestureSingle *gesture) priv = gtk_gesture_single_get_instance_private (gesture); - if (g_getenv ("GTK_TEST_TOUCHSCREEN")) + if (g_getenv ("GTK_TEST_TOUCHSCREEN") || + (gtk_get_debug_flags () & GTK_DEBUG_TOUCHSCREEN) != 0) priv->touch_only = FALSE; else priv->touch_only = TRUE; |