[gimp] app: set better status title strings in crop, text, rectangle select
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: set better status title strings in crop, text, rectangle select
- Date: Thu, 29 Jun 2017 18:39:08 +0000 (UTC)
commit 26b9e7a3578e905645ebca2637a1b0fd242c4268
Author: Michael Natterer <mitch gimp org>
Date: Thu Jun 29 20:38:04 2017 +0200
app: set better status title strings in crop, text, rectangle select
app/tools/gimpcroptool.c | 4 ++++
app/tools/gimprectangleselecttool.c | 7 +++++--
app/tools/gimptexttool.c | 1 +
3 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/app/tools/gimpcroptool.c b/app/tools/gimpcroptool.c
index fe273ff..8ff591a 100644
--- a/app/tools/gimpcroptool.c
+++ b/app/tools/gimpcroptool.c
@@ -354,6 +354,10 @@ gimp_crop_tool_start (GimpCropTool *crop_tool,
crop_tool->widget = widget = gimp_tool_rectangle_new (shell);
+ g_object_set (widget,
+ "status-title", _("Crop to: "),
+ NULL);
+
gimp_draw_tool_set_widget (GIMP_DRAW_TOOL (tool), widget);
for (i = 0; i < G_N_ELEMENTS (properties); i++)
diff --git a/app/tools/gimprectangleselecttool.c b/app/tools/gimprectangleselecttool.c
index 1863a1d..f6384d6 100644
--- a/app/tools/gimprectangleselecttool.c
+++ b/app/tools/gimprectangleselecttool.c
@@ -663,6 +663,7 @@ gimp_rectangle_select_tool_start (GimpRectangleSelectTool *rect_tool,
GimpDisplayShell *shell = gimp_display_get_shell (display);
GimpRectangleSelectOptions *options;
GimpToolWidget *widget;
+ gboolean draw_ellipse;
gint i;
options = GIMP_RECTANGLE_SELECT_TOOL_GET_OPTIONS (rect_tool);
@@ -671,9 +672,11 @@ gimp_rectangle_select_tool_start (GimpRectangleSelectTool *rect_tool,
private->widget = widget = gimp_tool_rectangle_new (shell);
+ draw_ellipse = GIMP_RECTANGLE_SELECT_TOOL_GET_CLASS (rect_tool)->draw_ellipse;
+
g_object_set (widget,
- "draw-ellipse",
- GIMP_RECTANGLE_SELECT_TOOL_GET_CLASS (rect_tool)->draw_ellipse,
+ "draw-ellipse", draw_ellipse,
+ "status-title", draw_ellipse ? _("Ellipse: ") : _("Rectangle :"),
NULL);
gimp_draw_tool_set_widget (GIMP_DRAW_TOOL (tool), widget);
diff --git a/app/tools/gimptexttool.c b/app/tools/gimptexttool.c
index 0956342..2ee4ae1 100644
--- a/app/tools/gimptexttool.c
+++ b/app/tools/gimptexttool.c
@@ -948,6 +948,7 @@ gimp_text_tool_start (GimpTextTool *text_tool,
g_object_set (widget,
"force-narrow-mode", TRUE,
+ "status-title", _("Text box: "),
NULL);
gimp_draw_tool_set_widget (GIMP_DRAW_TOOL (tool), widget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]