[gimp/gimp-2-10] app: avoid duplicate offset actions
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] app: avoid duplicate offset actions
- Date: Thu, 6 Jun 2019 08:55:21 +0000 (UTC)
commit 257e35dda15ddfc24a8ae6c257acf39997dc29c9
Author: Ell <ell_se yahoo com>
Date: Thu Jun 6 04:47:46 2019 -0400
app: avoid duplicate offset actions
Blacklist the "tools-offset" action in the GUI, and only keep
"filters-offset", to avoid duplication. Update gimp:offset's
description, so that "filters-offset" gets a proper tool-tip.
(cherry picked from commit 42d4255262740add4d6228d4f32299f1594c09d5)
app/operations/gimpoperationoffset.c | 6 ++++--
app/widgets/gimpaction.c | 1 +
po/POTFILES.in | 1 +
3 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/app/operations/gimpoperationoffset.c b/app/operations/gimpoperationoffset.c
index c3d2c580f6..782e1ca5f6 100644
--- a/app/operations/gimpoperationoffset.c
+++ b/app/operations/gimpoperationoffset.c
@@ -33,6 +33,8 @@
#include "gimpoperationoffset.h"
+#include "gimp-intl.h"
+
enum
{
@@ -112,8 +114,8 @@ gimp_operation_offset_class_init (GimpOperationOffsetClass *klass)
gegl_operation_class_set_keys (operation_class,
"name", "gimp:offset",
- "categories", "gimp",
- "description", "GIMP Offset operation",
+ "categories", "transform",
+ "description", _("Shift the pixels, optionally wrapping them at the
borders"),
NULL);
g_object_class_install_property (object_class, PROP_CONTEXT,
diff --git a/app/widgets/gimpaction.c b/app/widgets/gimpaction.c
index 1bb1b125d1..5a64edcd56 100644
--- a/app/widgets/gimpaction.c
+++ b/app/widgets/gimpaction.c
@@ -334,6 +334,7 @@ gimp_action_is_gui_blacklisted (const gchar *action_name)
"tools-brightness-contrast",
"tools-curves",
"tools-levels",
+ "tools-offset",
"tools-threshold"
};
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 89407f4b67..4414f26b58 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -297,6 +297,7 @@ app/operations/gimpoperationcurves.c
app/operations/gimpoperationdesaturate.c
app/operations/gimpoperationhuesaturation.c
app/operations/gimpoperationlevels.c
+app/operations/gimpoperationoffset.c
app/operations/gimpoperationposterize.c
app/operations/gimpoperationsemiflatten.c
app/operations/gimpoperationthreshold.c
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]