From: Stef Walter Date: Fri, 10 Feb 2012 08:08:03 +0000 (+0100) Subject: gcr: Reenable grabs for password prompts X-Git-Tag: upstream/3.7.5~152 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=85ee40b4d5c573ed239214fc227611c7936c9c88;p=platform%2Fupstream%2Fgcr.git gcr: Reenable grabs for password prompts * Disable them when configure is passed --enable-debug --- diff --git a/configure.ac b/configure.ac index be7f7fc..54a051e 100644 --- a/configure.ac +++ b/configure.ac @@ -201,6 +201,7 @@ fi if test "$enable_debug" = "yes"; then debug_status="yes (-g, -O0, debug output, testable)" + AC_DEFINE_UNQUOTED(GCR_DISABLE_GRABS, 1, [Disable grabs]) CFLAGS="$CFLAGS -O0" elif test "$enable_debug" = "no"; then debug_status="no (no debug output, not testable, G_DISABLE_ASSERT)" diff --git a/gcr/gcr-prompt-dialog.c b/gcr/gcr-prompt-dialog.c index c4691c5..9174904 100644 --- a/gcr/gcr-prompt-dialog.c +++ b/gcr/gcr-prompt-dialog.c @@ -56,7 +56,11 @@ * The class for #GcrPromptDialog. */ +#ifdef GCR_DISABLE_GRABS #define GRAB_KEYBOARD 0 +#else +#define GRAB_KEYBOARD 1 +#endif typedef enum { PROMPT_NONE,