[gimp] app: restore the crop tool's "Click or press Enter to crop" status message



commit 79207bd3bf049e1b716de97b4e81d453f1f69ea1
Author: Michael Natterer <mitch gimp org>
Date:   Thu Jun 29 22:15:17 2017 +0200

    app: restore the crop tool's "Click or press Enter to crop" status message
    
    it probably got lost when improving GimpToolRectangle's messages.
    Also add a default idle status message "Click-Drag to draw a crop
    rectangle".

 app/tools/gimpcroptool.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/app/tools/gimpcroptool.c b/app/tools/gimpcroptool.c
index 8ff591a..e665a7b 100644
--- a/app/tools/gimpcroptool.c
+++ b/app/tools/gimpcroptool.c
@@ -145,6 +145,9 @@ gimp_crop_tool_init (GimpCropTool *crop_tool)
                                      GIMP_CURSOR_PRECISION_PIXEL_BORDER);
   gimp_tool_control_set_cursor      (tool->control, GIMP_CURSOR_CROSSHAIR_SMALL);
   gimp_tool_control_set_tool_cursor (tool->control, GIMP_TOOL_CURSOR_CROP);
+
+  gimp_draw_tool_set_default_status (GIMP_DRAW_TOOL (tool),
+                                     _("Click-Drag to draw a crop rectangle"));
 }
 
 static void
@@ -246,14 +249,14 @@ gimp_crop_tool_button_release (GimpTool              *tool,
 
   gimp_tool_control_halt (tool->control);
 
-  gimp_tool_push_status (tool, display, _("Click or press Enter to crop"));
-
   if (crop_tool->grab_widget)
     {
       gimp_tool_widget_button_release (crop_tool->grab_widget,
                                        coords, time, state, release_type);
       crop_tool->grab_widget = NULL;
     }
+
+  gimp_tool_push_status (tool, display, _("Click or press Enter to crop"));
 }
 
 static void


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