[gtk+] window: Delay showing auto mnemonics on focus in



commit 1b5dabac8b6407bd11c9c4ecc8efc803e9646a0b
Author: Rui Matos <tiagomatos gmail com>
Date:   Fri Sep 21 05:11:43 2012 +0200

    window: Delay showing auto mnemonics on focus in
    
    Just as in ed7a417dcbe3f0723e5dcef07d4bb566d77b7205 we don't want to
    show auto mnemonics immediately but only after a short delay. In
    particular this allows to capture screenshots without visible
    mnemonics.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=684517

 gtk/gtkwindow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 483beb5..159514d 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -6248,7 +6248,7 @@ maybe_set_mnemonics_visible (GtkWindow *window)
                                 NULL, &mask);
           if (window->priv->mnemonic_modifier == (mask & gtk_accelerator_get_default_mod_mask ()))
             {
-              gtk_window_set_mnemonics_visible (window, TRUE);
+              _gtk_window_set_auto_mnemonics_visible (window);
               break;
             }
         }



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