[gimp] app: avoid duplicate offset actions
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: avoid duplicate offset actions
- Date: Thu, 6 Jun 2019 08:55:31 +0000 (UTC)
commit 42d4255262740add4d6228d4f32299f1594c09d5
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.
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 f9e0c0c766..660962cefb 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 b3af253b01..2bd83e22c5 100644
--- a/app/widgets/gimpaction.c
+++ b/app/widgets/gimpaction.c
@@ -341,6 +341,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 b6a897aab6..cf39510431 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -301,6 +301,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]