[krb5-auth-dialog] Add no-header-bar test option



commit 536d7d26802c7f91c45ef74e5b937f457392d6fd
Author: Guido Günther <agx sigxcpu org>
Date:   Sat Nov 1 14:14:42 2014 +0100

    Add no-header-bar test option
    
    This allows us to test the dialogs without header bars

 src/ka-applet.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/ka-applet.c b/src/ka-applet.c
index 721a0fa..cc779db 100644
--- a/src/ka-applet.c
+++ b/src/ka-applet.c
@@ -57,6 +57,7 @@ enum {
 
 enum {
     KA_DEBUG_NO_APP_MENU = 1,   /* Disable gtk-shell-shows-app-menu gtk setting */
+    KA_DEBUG_NO_HEADER_BAR = 2, /* Disable header-bar setting */
 };
 
 
@@ -288,6 +289,12 @@ ka_applet_handle_debug(KaApplet *self)
                           "gtk-shell-shows-app-menu", FALSE,
                           NULL);
             self->priv->debug_flags |= KA_DEBUG_NO_APP_MENU;
+        } else if (!g_strcmp0(*opt, "no-header-bar")) {
+            KA_DEBUG ("Disabling use-header-bar Gtk setting  as requested...");
+            g_object_set (gtk_settings_get_default (),
+                          "gtk-dialogs-use-header", FALSE,
+                          NULL);
+            self->priv->debug_flags |= KA_DEBUG_NO_HEADER_BAR;
         } else {
             g_warning ("Unhandled debug options %s", *opt);
         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]