gcr: Reenable grabs for password prompts
authorStef Walter <stefw@gnome.org>
Fri, 10 Feb 2012 08:08:03 +0000 (09:08 +0100)
committerStef Walter <stefw@gnome.org>
Fri, 10 Feb 2012 08:08:03 +0000 (09:08 +0100)
 * Disable them when configure is passed --enable-debug

configure.ac
gcr/gcr-prompt-dialog.c

index be7f7fc..54a051e 100644 (file)
@@ -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)"
index c4691c5..9174904 100644 (file)
  * The class for #GcrPromptDialog.
  */
 
+#ifdef GCR_DISABLE_GRABS
 #define GRAB_KEYBOARD 0
+#else
+#define GRAB_KEYBOARD 1
+#endif
 
 typedef enum {
        PROMPT_NONE,