[gimp/metadata-browser] Bug 667367 - Bad widget hint
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] Bug 667367 - Bad widget hint
- Date: Wed, 12 Sep 2012 22:36:51 +0000 (UTC)
commit 80a14151b3bcbd9a63b6ae39c345267ee0d5158a
Author: Michael Natterer <mitch gimp org>
Date: Sat Jan 7 22:18:22 2012 +0100
Bug 667367 - Bad widget hint
Remove the tooltip of GimpTransformOptions:constrain from the param
spec and add it manually, so it is different for rotate and scale.
app/tools/gimptransformoptions.c | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 deletions(-)
---
diff --git a/app/tools/gimptransformoptions.c b/app/tools/gimptransformoptions.c
index 59b8dd5..b4e310e 100644
--- a/app/tools/gimptransformoptions.c
+++ b/app/tools/gimptransformoptions.c
@@ -135,7 +135,7 @@ gimp_transform_options_class_init (GimpTransformOptionsClass *klass)
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_CONSTRAIN,
"constrain",
- N_("Limit rotation steps to 15 degrees"),
+ NULL,
FALSE,
GIMP_PARAM_STATIC_STRINGS);
}
@@ -267,7 +267,8 @@ gimp_transform_options_gui (GimpToolOptions *tool_options)
GtkWidget *combo;
GtkWidget *scale;
GtkWidget *grid_box;
- const gchar *constrain = NULL;
+ const gchar *constrain_label = NULL;
+ const gchar *constrain_tip = NULL;
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
@@ -342,14 +343,16 @@ gimp_transform_options_gui (GimpToolOptions *tool_options)
if (tool_options->tool_info->tool_type == GIMP_TYPE_ROTATE_TOOL)
{
- constrain = (_("15 degrees (%s)"));
+ constrain_label = _("15 degrees (%s)");
+ constrain_tip = _("Limit rotation steps to 15 degrees");
}
else if (tool_options->tool_info->tool_type == GIMP_TYPE_SCALE_TOOL)
{
- constrain = (_("Keep aspect (%s)"));
+ constrain_label = _("Keep aspect (%s)");
+ constrain_tip = _("Keep the original aspect ratio");
}
- if (constrain)
+ if (constrain_label)
{
GtkWidget *button;
gchar *label;
@@ -357,13 +360,15 @@ gimp_transform_options_gui (GimpToolOptions *tool_options)
constrain_mask = gimp_get_constrain_behavior_mask ();
- label = g_strdup_printf (constrain,
+ label = g_strdup_printf (constrain_label,
gimp_get_mod_string (constrain_mask));
button = gimp_prop_check_button_new (config, "constrain", label);
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
gtk_widget_show (button);
+ gimp_help_set_help_data (button, constrain_tip, NULL);
+
g_free (label);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]