[gimp] app: use toggle_behavior_mask instead of CONTROL in GimpThumbBox



commit 2ee5dbb98c2b260df56b2f88dd4e10a35fd7b402
Author: Michael Natterer <mitch gimp org>
Date:   Thu Oct 6 23:31:13 2011 +0200

    app: use toggle_behavior_mask instead of CONTROL in GimpThumbBox
    
    Also, don't use gimp_get_mod_separator() but a translatable "-"
    because the separator is empty on OSX.

 app/widgets/gimpthumbbox.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/app/widgets/gimpthumbbox.c b/app/widgets/gimpthumbbox.c
index 57d3a9d..f5ece6e 100644
--- a/app/widgets/gimpthumbbox.c
+++ b/app/widgets/gimpthumbbox.c
@@ -328,10 +328,9 @@ gimp_thumb_box_new (GimpContext *context)
                     box);
 
   str = g_strdup_printf (_("Click to update preview\n"
-                           "%s%sClick to force update even "
+                           "%s-Click to force update even "
                            "if preview is up-to-date"),
-                         gimp_get_mod_string (GDK_CONTROL_MASK),
-                         gimp_get_mod_separator ());
+                         gimp_get_mod_string (gimp_get_toggle_behavior_mask ()));
 
   gimp_help_set_help_data (ebox, str, NULL);
 
@@ -507,7 +506,8 @@ gimp_thumb_box_thumbnail_clicked (GtkWidget       *widget,
                                   GimpThumbBox    *box)
 {
   gimp_thumb_box_create_thumbnails (box,
-                                    (state & GDK_CONTROL_MASK) ? TRUE : FALSE);
+                                    (state & gimp_get_toggle_behavior_mask ()) ?
+                                    TRUE : FALSE);
 }
 
 static void



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