[gimp] More tooltips for tools options
- From: Alexandre Prokoudine <aprokoudine src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] More tooltips for tools options
- Date: Wed, 20 Apr 2011 20:19:33 +0000 (UTC)
commit c5b44f6bd034544a20ec3d0ae6b8e352fe830e1f
Author: Alexandre Prokoudine <alexandre prokoudine gmail com>
Date: Thu Apr 21 00:17:31 2011 +0400
More tooltips for tools options
Added previously missing tooltips for rectangular and region
selection based tools.
app/tools/gimprectangleoptions.c | 44 +++++++++++++++++++++----------
app/tools/gimprectangleselectoptions.c | 9 ++++--
app/tools/gimpregionselectoptions.c | 3 +-
app/tools/gimpselectionoptions.c | 6 +++-
4 files changed, 42 insertions(+), 20 deletions(-)
---
diff --git a/app/tools/gimprectangleoptions.c b/app/tools/gimprectangleoptions.c
index 0f3fdf8..21f72a2 100644
--- a/app/tools/gimprectangleoptions.c
+++ b/app/tools/gimprectangleoptions.c
@@ -100,7 +100,9 @@ gimp_rectangle_options_iface_base_init (GimpRectangleOptionsInterface *iface)
{
g_object_interface_install_property (iface,
g_param_spec_boolean ("auto-shrink",
- NULL, NULL,
+ NULL,
+ N_("Automatically shrink to the nearest "
+ "rectangular shape in a layer"),
FALSE,
GIMP_CONFIG_PARAM_FLAGS |
GIMP_PARAM_STATIC_STRINGS));
@@ -116,7 +118,8 @@ gimp_rectangle_options_iface_base_init (GimpRectangleOptionsInterface *iface)
g_object_interface_install_property (iface,
g_param_spec_enum ("guide",
- NULL, NULL,
+ NULL,
+ N_("Composition guides such as rule of thirds"),
GIMP_TYPE_RECTANGLE_GUIDE,
GIMP_RECTANGLE_GUIDE_NONE,
GIMP_CONFIG_PARAM_FLAGS |
@@ -124,7 +127,8 @@ gimp_rectangle_options_iface_base_init (GimpRectangleOptionsInterface *iface)
g_object_interface_install_property (iface,
g_param_spec_double ("x",
- NULL, NULL,
+ NULL,
+ N_("X coordinate of top left corner"),
-GIMP_MAX_IMAGE_SIZE,
GIMP_MAX_IMAGE_SIZE,
0.0,
@@ -133,7 +137,8 @@ gimp_rectangle_options_iface_base_init (GimpRectangleOptionsInterface *iface)
g_object_interface_install_property (iface,
g_param_spec_double ("y",
- NULL, NULL,
+ NULL,
+ N_("Y coordinate of top left corner"),
-GIMP_MAX_IMAGE_SIZE,
GIMP_MAX_IMAGE_SIZE,
0.0,
@@ -142,7 +147,8 @@ gimp_rectangle_options_iface_base_init (GimpRectangleOptionsInterface *iface)
g_object_interface_install_property (iface,
g_param_spec_double ("width",
- NULL, NULL,
+ NULL,
+ N_("Width of selection"),
0.0, GIMP_MAX_IMAGE_SIZE,
0.0,
GIMP_PARAM_READWRITE |
@@ -150,7 +156,8 @@ gimp_rectangle_options_iface_base_init (GimpRectangleOptionsInterface *iface)
g_object_interface_install_property (iface,
g_param_spec_double ("height",
- NULL, NULL,
+ NULL,
+ N_("Height of selection"),
0.0, GIMP_MAX_IMAGE_SIZE,
0.0,
GIMP_PARAM_READWRITE |
@@ -158,7 +165,8 @@ gimp_rectangle_options_iface_base_init (GimpRectangleOptionsInterface *iface)
g_object_interface_install_property (iface,
gimp_param_spec_unit ("position-unit",
- NULL, NULL,
+ NULL,
+ N_("Unit of top left corner coordinate"),
TRUE, TRUE,
GIMP_UNIT_PIXEL,
GIMP_PARAM_READWRITE |
@@ -166,7 +174,8 @@ gimp_rectangle_options_iface_base_init (GimpRectangleOptionsInterface *iface)
g_object_interface_install_property (iface,
gimp_param_spec_unit ("size-unit",
- NULL, NULL,
+ NULL,
+ N_("Unit of selection size"),
TRUE, TRUE,
GIMP_UNIT_PIXEL,
GIMP_PARAM_READWRITE |
@@ -174,14 +183,17 @@ gimp_rectangle_options_iface_base_init (GimpRectangleOptionsInterface *iface)
g_object_interface_install_property (iface,
g_param_spec_boolean ("fixed-rule-active",
- NULL, NULL,
+ NULL,
+ N_("Enable lock of aspect ratio, "
+ "width, height or size"),
FALSE,
GIMP_CONFIG_PARAM_FLAGS |
GIMP_PARAM_STATIC_STRINGS));
g_object_interface_install_property (iface,
g_param_spec_enum ("fixed-rule",
- NULL, NULL,
+ NULL,
+ N_("Choose what has to be locked"),
GIMP_TYPE_RECTANGLE_TOOL_FIXED_RULE,
GIMP_RECTANGLE_TOOL_FIXED_ASPECT,
GIMP_CONFIG_PARAM_FLAGS |
@@ -189,7 +201,8 @@ gimp_rectangle_options_iface_base_init (GimpRectangleOptionsInterface *iface)
g_object_interface_install_property (iface,
g_param_spec_double ("desired-fixed-width",
- NULL, NULL,
+ NULL,
+ N_("Custom fixed width"),
0.0, GIMP_MAX_IMAGE_SIZE,
100.0,
GIMP_CONFIG_PARAM_FLAGS |
@@ -197,7 +210,8 @@ gimp_rectangle_options_iface_base_init (GimpRectangleOptionsInterface *iface)
g_object_interface_install_property (iface,
g_param_spec_double ("desired-fixed-height",
- NULL, NULL,
+ NULL,
+ N_("Custom fixed height"),
0.0, GIMP_MAX_IMAGE_SIZE,
100.0,
GIMP_CONFIG_PARAM_FLAGS |
@@ -290,7 +304,8 @@ gimp_rectangle_options_iface_base_init (GimpRectangleOptionsInterface *iface)
g_object_interface_install_property (iface,
gimp_param_spec_unit ("fixed-unit",
- NULL, NULL,
+ NULL,
+ N_("Unit of fixed width, height or size"),
TRUE, TRUE,
GIMP_UNIT_PIXEL,
GIMP_PARAM_READWRITE |
@@ -298,7 +313,8 @@ gimp_rectangle_options_iface_base_init (GimpRectangleOptionsInterface *iface)
g_object_interface_install_property (iface,
g_param_spec_boolean ("fixed-center",
- NULL, NULL,
+ NULL,
+ N_("Expand selection from center outwards"),
FALSE,
GIMP_CONFIG_PARAM_FLAGS |
GIMP_PARAM_STATIC_STRINGS));
diff --git a/app/tools/gimprectangleselectoptions.c b/app/tools/gimprectangleselectoptions.c
index a0ff867..38f61d2 100644
--- a/app/tools/gimprectangleselectoptions.c
+++ b/app/tools/gimprectangleselectoptions.c
@@ -73,17 +73,20 @@ gimp_rectangle_select_options_class_init (GimpRectangleSelectOptionsClass *klass
*/
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class,
GIMP_RECTANGLE_OPTIONS_PROP_HIGHLIGHT,
- "highlight", NULL,
+ "highlight",
+ N_("Dim everything outside selection"),
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_ROUND_CORNERS,
- "round-corners", NULL,
+ "round-corners",
+ N_("Round corners of selection"),
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_CORNER_RADIUS,
- "corner-radius", NULL,
+ "corner-radius",
+ N_("Radius of rounding in pixels"),
0.0, 100.0, 5.0,
GIMP_PARAM_STATIC_STRINGS);
diff --git a/app/tools/gimpregionselectoptions.c b/app/tools/gimpregionselectoptions.c
index 74f97fc..5933641 100644
--- a/app/tools/gimpregionselectoptions.c
+++ b/app/tools/gimpregionselectoptions.c
@@ -97,7 +97,8 @@ gimp_region_select_options_class_init (GimpRegionSelectOptionsClass *klass)
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_SELECT_CRITERION,
- "select-criterion", NULL,
+ "select-criterion",
+ N_("Selection criterion"),
GIMP_TYPE_SELECT_CRITERION,
GIMP_SELECT_CRITERION_COMPOSITE,
GIMP_PARAM_STATIC_STRINGS);
diff --git a/app/tools/gimpselectionoptions.c b/app/tools/gimpselectionoptions.c
index f4d3a10..c62bbaa 100644
--- a/app/tools/gimpselectionoptions.c
+++ b/app/tools/gimpselectionoptions.c
@@ -80,12 +80,14 @@ gimp_selection_options_class_init (GimpSelectionOptionsClass *klass)
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_FEATHER,
- "feather", NULL,
+ "feather",
+ N_("Enable feathering of selection edges"),
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_FEATHER_RADIUS,
- "feather-radius", NULL,
+ "feather-radius",
+ N_("Radius of feathering"),
0.0, 100.0, 10.0,
GIMP_PARAM_STATIC_STRINGS);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]