[gimp] Bug 701168 - Select | Shrink: A better label for "Shrink from image border"



commit 527d81a1811044633f105f977ad15e0334cdabb5
Author: Michael Natterer <mitch gimp org>
Date:   Fri Nov 22 22:00:08 2013 +0100

    Bug 701168 - Select | Shrink: A better label for "Shrink from image border"
    
    Change the weird button labels in the shrink and border dialogs to
    "Selected areas continue outside the image" and add tooltips.

 app/actions/select-commands.c |   34 +++++++++++++++++-----------------
 1 files changed, 17 insertions(+), 17 deletions(-)
---
diff --git a/app/actions/select-commands.c b/app/actions/select-commands.c
index 95272b0..3f0e52b 100644
--- a/app/actions/select-commands.c
+++ b/app/actions/select-commands.c
@@ -206,14 +206,17 @@ select_shrink_cmd_callback (GtkAction *action,
                                 G_OBJECT (image), "disconnect",
                                 select_shrink_callback, image);
 
-  button = gtk_check_button_new_with_mnemonic (_("_Shrink from image border"));
-
-  gtk_box_pack_start (GTK_BOX (GIMP_QUERY_BOX_VBOX (dialog)), button,
-                      FALSE, FALSE, 0);
-
+  /* Edge lock button */
+  button = gtk_check_button_new_with_mnemonic (_("_Selected areas continue outside the image"));
   g_object_set_data (G_OBJECT (dialog), "edge-lock-toggle", button);
+  gimp_help_set_help_data (button,
+                           _("When shrinking, act as if selected areas "
+                             "continued outside the image."),
+                           NULL);
   gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button),
-                                ! select_shrink_edge_lock);
+                                select_shrink_edge_lock);
+  gtk_box_pack_start (GTK_BOX (GIMP_QUERY_BOX_VBOX (dialog)), button,
+                      FALSE, FALSE, 0);
   gtk_widget_show (button);
 
   gtk_widget_show (dialog);
@@ -283,26 +286,23 @@ select_border_cmd_callback (GtkAction *action,
                       FALSE, FALSE, 0);
 
   g_object_set_data (G_OBJECT (dialog), "border-feather-toggle", button);
-
   gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button),
                                 select_border_feather);
   gtk_widget_show (button);
 
-
   /* Edge lock button */
-  button = gtk_check_button_new_with_mnemonic (_("_Lock selection to image edges"));
-
-  gtk_box_pack_start (GTK_BOX (GIMP_QUERY_BOX_VBOX (dialog)), button,
-                      FALSE, FALSE, 0);
-
+  button = gtk_check_button_new_with_mnemonic (_("_Selected areas continue outside the image"));
   g_object_set_data (G_OBJECT (dialog), "edge-lock-toggle", button);
-
+  gimp_help_set_help_data (button,
+                           _("When bordering, act as if selected areas "
+                             "continued outside the image."),
+                           NULL);
   gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button),
                                 select_border_edge_lock);
+  gtk_box_pack_start (GTK_BOX (GIMP_QUERY_BOX_VBOX (dialog)), button,
+                      FALSE, FALSE, 0);
   gtk_widget_show (button);
 
-
-
   gtk_widget_show (dialog);
 }
 
@@ -529,7 +529,7 @@ select_shrink_callback (GtkWidget *widget,
   radius_x = radius_y = select_shrink_pixels = ROUND (size);
 
   select_shrink_edge_lock =
-    ! gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button));
+    gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button));
 
   if (unit != GIMP_UNIT_PIXEL)
     {


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