Commit 4328fa94 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

added utility functions gimp_get_mod_name_[shift|control|alt]() and

2002-12-19  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpwidgets-utils.[ch]: added utility functions
	gimp_get_mod_name_[shift|control|alt]() and gimp_get_mod_separator()
	which get the translated strings for "Shift", "Ctrl", "Alt" and "+"
	from GtkAccelLabelClass to force consistency between menu
	accelerators and other modifiers displayed in the GUI.
	Made the format string to display the modifier ("<%s>")
	translatable separately.

	* app/gui/file-open-dialog.c
	* app/tools/gimpbucketfilltool.c
	* app/tools/gimpconvolvetool.c
	* app/tools/gimpcroptool.c
	* app/tools/gimpdodgeburntool.c
	* app/tools/gimperasertool.c
	* app/tools/gimpfliptool.c
	* app/tools/gimpmagnifytool.c
	* app/tools/gimpmovetool.c
	* app/tools/transform_options.c
	* app/widgets/gimpchannellistview.c
	* app/widgets/gimpdocumentview.c
	* app/widgets/gimpgradienteditor.c
	* app/widgets/gimpitemlistview.c
	* app/widgets/gimpvectorslistview.c: use the new functions instead
	of hardcoding the modifier names over and over again.

	* app/tools/transform_options.c: made a scale_entry out of the
	grid density spinbutton.
parent 3265a22e
2002-12-19 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpwidgets-utils.[ch]: added utility functions
gimp_get_mod_name_[shift|control|alt]() and gimp_get_mod_separator()
which get the translated strings for "Shift", "Ctrl", "Alt" and "+"
from GtkAccelLabelClass to force consistency between menu
accelerators and other modifiers displayed in the GUI.
Made the format string to display the modifier ("<%s>")
translatable separately.
* app/gui/file-open-dialog.c
* app/tools/gimpbucketfilltool.c
* app/tools/gimpconvolvetool.c
* app/tools/gimpcroptool.c
* app/tools/gimpdodgeburntool.c
* app/tools/gimperasertool.c
* app/tools/gimpfliptool.c
* app/tools/gimpmagnifytool.c
* app/tools/gimpmovetool.c
* app/tools/transform_options.c
* app/widgets/gimpchannellistview.c
* app/widgets/gimpdocumentview.c
* app/widgets/gimpgradienteditor.c
* app/widgets/gimpitemlistview.c
* app/widgets/gimpvectorslistview.c: use the new functions instead
of hardcoding the modifier names over and over again.
* app/tools/transform_options.c: made a scale_entry out of the
grid density spinbutton.
2002-12-19 Michael Natterer <mitch@gimp.org>
 
* libgimpwidgets/gimpcolordisplay.c (gimp_color_display_class_init):
......
......@@ -56,6 +56,7 @@
#include "widgets/gimpitemfactory.h"
#include "widgets/gimppreview.h"
#include "widgets/gimpwidgets-utils.h"
#include "file-dialog-utils.h"
#include "file-open-dialog.h"
......@@ -250,6 +251,7 @@ file_open_dialog_create (Gimp *gimp)
GtkWidget *label;
GtkWidget *progress;
GtkStyle *style;
gchar *str;
/* Catch file-list clicks so we can update the preview thumbnail */
g_signal_connect (G_OBJECT (tree_sel), "changed",
......@@ -276,9 +278,14 @@ file_open_dialog_create (Gimp *gimp)
G_CALLBACK (file_open_thumbnail_button_press),
open_dialog);
gimp_help_set_help_data (ebox, _("Click to update preview\n"
"<Ctrl> Click to force update even "
"if preview is up-to-date"), NULL);
str = g_strdup_printf (_("Click to update preview\n"
"%s Click to force update even "
"if preview is up-to-date"),
gimp_get_mod_name_control ());
gimp_help_set_help_data (ebox, str, NULL);
g_free (str);
vbox = gtk_vbox_new (FALSE, 0);
gtk_container_add (GTK_CONTAINER (ebox), vbox);
......
......@@ -56,6 +56,7 @@
#include "widgets/gimpitemfactory.h"
#include "widgets/gimppreview.h"
#include "widgets/gimpwidgets-utils.h"
#include "file-dialog-utils.h"
#include "file-open-dialog.h"
......@@ -250,6 +251,7 @@ file_open_dialog_create (Gimp *gimp)
GtkWidget *label;
GtkWidget *progress;
GtkStyle *style;
gchar *str;
/* Catch file-list clicks so we can update the preview thumbnail */
g_signal_connect (G_OBJECT (tree_sel), "changed",
......@@ -276,9 +278,14 @@ file_open_dialog_create (Gimp *gimp)
G_CALLBACK (file_open_thumbnail_button_press),
open_dialog);
gimp_help_set_help_data (ebox, _("Click to update preview\n"
"<Ctrl> Click to force update even "
"if preview is up-to-date"), NULL);
str = g_strdup_printf (_("Click to update preview\n"
"%s Click to force update even "
"if preview is up-to-date"),
gimp_get_mod_name_control ());
gimp_help_set_help_data (ebox, str, NULL);
g_free (str);
vbox = gtk_vbox_new (FALSE, 0);
gtk_container_add (GTK_CONTAINER (ebox), vbox);
......
......@@ -40,6 +40,7 @@
#include "display/gimpdisplay.h"
#include "widgets/gimpenummenu.h"
#include "widgets/gimpwidgets-utils.h"
#include "gimpbucketfilltool.h"
#include "paint_options.h"
......@@ -331,11 +332,11 @@ static GimpToolOptions *
bucket_options_new (GimpToolInfo *tool_info)
{
BucketOptions *options;
GtkWidget *vbox;
GtkWidget *vbox2;
GtkWidget *table;
GtkWidget *frame;
GtkWidget *vbox;
GtkWidget *vbox2;
GtkWidget *table;
GtkWidget *frame;
gchar *str;
options = g_new0 (BucketOptions, 1);
......@@ -354,19 +355,22 @@ bucket_options_new (GimpToolInfo *tool_info)
/* the main vbox */
vbox = ((GimpToolOptions *) options)->main_vbox;
str = g_strdup_printf (_("Fill Type %s"), gimp_get_mod_name_control ());
/* fill type */
frame = gimp_enum_radio_frame_new (GIMP_TYPE_BUCKET_FILL_MODE,
gtk_label_new (_("Fill Type (<Ctrl>)")),
gtk_label_new (str),
2,
G_CALLBACK (gimp_radio_button_update),
&options->fill_mode,
&options->fill_mode_w);
gimp_radio_group_set_active (GTK_RADIO_BUTTON (options->fill_mode_w),
GINT_TO_POINTER (options->fill_mode));
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
gtk_widget_show (frame);
g_free (str);
frame = gtk_frame_new (_("Finding Similar Colors"));
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
gtk_widget_show (frame);
......
......@@ -40,6 +40,7 @@
#include "paint/gimpconvolve.h"
#include "widgets/gimpenummenu.h"
#include "widgets/gimpwidgets-utils.h"
#include "gimpconvolvetool.h"
#include "paint_options.h"
......@@ -210,6 +211,7 @@ convolve_options_new (GimpToolInfo *tool_info)
GtkWidget *vbox;
GtkWidget *table;
GtkWidget *frame;
gchar *str;
options = gimp_convolve_options_new (tool_info->context);
......@@ -220,18 +222,22 @@ convolve_options_new (GimpToolInfo *tool_info)
/* the main vbox */
vbox = ((GimpToolOptions *) options)->main_vbox;
str = g_strdup_printf (_("Convolve Type %s"),
gimp_get_mod_name_control ());
frame = gimp_enum_radio_frame_new (GIMP_TYPE_CONVOLVE_TYPE,
gtk_label_new (_("Convolve Type (<Ctrl>)")),
gtk_label_new (str),
2,
G_CALLBACK (gimp_radio_button_update),
&options->type,
&options->type_w);
gimp_radio_group_set_active (GTK_RADIO_BUTTON (options->type_w),
GINT_TO_POINTER (options->type));
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
gtk_widget_show (frame);
g_free (str);
/* the rate scale */
table = gtk_table_new (1, 3, FALSE);
gtk_table_set_col_spacings (GTK_TABLE (table), 2);
......
......@@ -41,6 +41,7 @@
#include "widgets/gimpenummenu.h"
#include "widgets/gimpviewabledialog.h"
#include "widgets/gimpwidgets-utils.h"
#include "gimpcroptool.h"
#include "tool_manager.h"
......@@ -1280,6 +1281,7 @@ crop_options_new (GimpToolInfo *tool_info)
CropOptions *options;
GtkWidget *vbox;
GtkWidget *frame;
gchar *str;
options = g_new0 (CropOptions, 1);
......@@ -1295,41 +1297,49 @@ crop_options_new (GimpToolInfo *tool_info)
vbox = options->tool_options.main_vbox;
/* tool toggle */
str = g_strdup_printf (_("Tool Toggle %s"), gimp_get_mod_name_control ());
frame = gimp_enum_radio_frame_new (GIMP_TYPE_CROP_TYPE,
gtk_label_new (_("Tool Toggle (<Ctrl>)")),
gtk_label_new (str),
2,
G_CALLBACK (gimp_radio_button_update),
&options->type,
&options->type_w);
gimp_radio_group_set_active (GTK_RADIO_BUTTON (options->type_w),
GINT_TO_POINTER (options->type));
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
gtk_widget_show (frame);
g_free (str);
/* layer toggle */
options->layer_only_w =
gtk_check_button_new_with_label (_("Current Layer only"));
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (options->layer_only_w),
options->layer_only);
gtk_box_pack_start (GTK_BOX (vbox), options->layer_only_w,
FALSE, FALSE, 0);
gtk_widget_show (options->layer_only_w);
g_signal_connect (G_OBJECT (options->layer_only_w), "toggled",
G_CALLBACK (gimp_toggle_button_update),
&options->layer_only);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (options->layer_only_w),
options->layer_only);
gtk_widget_show (options->layer_only_w);
/* enlarge toggle */
options->allow_enlarge_w =
gtk_check_button_new_with_label (_("Allow Enlarging (<Alt>)"));
str = g_strdup_printf (_("Allow Enlarging %s"), gimp_get_mod_name_alt ());
options->allow_enlarge_w = gtk_check_button_new_with_label (str);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (options->allow_enlarge_w),
options->allow_enlarge);
gtk_box_pack_start (GTK_BOX (vbox), options->allow_enlarge_w,
FALSE, FALSE, 0);
gtk_widget_show (options->allow_enlarge_w);
g_free (str);
g_signal_connect (G_OBJECT (options->allow_enlarge_w), "toggled",
G_CALLBACK (gimp_toggle_button_update),
&options->allow_enlarge);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (options->allow_enlarge_w),
options->allow_enlarge);
gtk_widget_show (options->allow_enlarge_w);
return (GimpToolOptions *) options;
}
......
......@@ -29,6 +29,7 @@
#include "paint/gimpdodgeburn.h"
#include "widgets/gimpenummenu.h"
#include "widgets/gimpwidgets-utils.h"
#include "gimpdodgeburntool.h"
#include "paint_options.h"
......@@ -188,6 +189,7 @@ gimp_dodgeburn_tool_options_new (GimpToolInfo *tool_info)
GtkWidget *vbox;
GtkWidget *table;
GtkWidget *frame;
gchar *str;
options = gimp_dodgeburn_options_new (tool_info->context);
......@@ -199,18 +201,21 @@ gimp_dodgeburn_tool_options_new (GimpToolInfo *tool_info)
vbox = ((GimpToolOptions *) options)->main_vbox;
/* the type (dodge or burn) */
str = g_strdup_printf (_("Type %s"), gimp_get_mod_name_control ());
frame = gimp_enum_radio_frame_new (GIMP_TYPE_DODGE_BURN_TYPE,
gtk_label_new (_("Type (<Ctrl>)")),
gtk_label_new (str),
2,
G_CALLBACK (gimp_radio_button_update),
&options->type,
&options->type_w);
gimp_radio_group_set_active (GTK_RADIO_BUTTON (options->type_w),
GINT_TO_POINTER (options->type));
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
gtk_widget_show (frame);
g_free (str);
/* mode (highlights, midtones, or shadows) */
frame = gimp_enum_radio_frame_new (GIMP_TYPE_TRANSFER_MODE,
gtk_label_new (_("Mode")),
......
......@@ -28,6 +28,8 @@
#include "paint/gimperaser.h"
#include "widgets/gimpwidgets-utils.h"
#include "gimperasertool.h"
#include "paint_options.h"
......@@ -172,6 +174,7 @@ gimp_eraser_tool_options_new (GimpToolInfo *tool_info)
{
GimpEraserOptions *options;
GtkWidget *vbox;
gchar *str;
options = gimp_eraser_options_new (tool_info->context);
......@@ -183,13 +186,16 @@ gimp_eraser_tool_options_new (GimpToolInfo *tool_info)
vbox = ((GimpToolOptions *) options)->main_vbox;
/* the anti_erase toggle */
options->anti_erase_w =
gtk_check_button_new_with_label (_("Anti Erase (<Ctrl>)"));
str = g_strdup_printf (_("Anti Erase %s"), gimp_get_mod_name_control ());
options->anti_erase_w = gtk_check_button_new_with_label (str);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (options->anti_erase_w),
options->anti_erase);
gtk_box_pack_start (GTK_BOX (vbox), options->anti_erase_w, FALSE, FALSE, 0);
gtk_widget_show (options->anti_erase_w);
g_free (str);
g_signal_connect (G_OBJECT (options->anti_erase_w), "toggled",
G_CALLBACK (gimp_toggle_button_update),
&options->anti_erase);
......
......@@ -33,6 +33,8 @@
#include "core/gimpimage-mask.h"
#include "core/gimptoolinfo.h"
#include "widgets/gimpwidgets-utils.h"
#include "display/gimpdisplay.h"
#include "gimpfliptool.h"
......@@ -271,6 +273,7 @@ flip_options_new (GimpToolInfo *tool_info)
FlipOptions *options;
GtkWidget *vbox;
GtkWidget *frame;
gchar *str;
options = g_new0 (FlipOptions, 1);
......@@ -284,7 +287,9 @@ flip_options_new (GimpToolInfo *tool_info)
vbox = options->tool_options.main_vbox;
/* tool toggle */
frame = gimp_radio_group_new2 (TRUE, _("Tool Toggle (<Ctrl>)"),
str = g_strdup_printf (_("Tool Toggle %s"), gimp_get_mod_name_control ());
frame = gimp_radio_group_new2 (TRUE, str,
G_CALLBACK (gimp_radio_button_update),
&options->type,
GINT_TO_POINTER (options->type),
......@@ -298,10 +303,11 @@ flip_options_new (GimpToolInfo *tool_info)
&options->type_w[1],
NULL);
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
gtk_widget_show (frame);
g_free (str);
return (GimpToolOptions *) options;
}
......
......@@ -38,6 +38,7 @@
#include "display/gimpdisplayshell-scale.h"
#include "widgets/gimpenummenu.h"
#include "widgets/gimpwidgets-utils.h"
#include "gimpmagnifytool.h"
#include "tool_options.h"
......@@ -433,6 +434,7 @@ magnify_options_new (GimpToolInfo *tool_info)
GtkWidget *vbox;
GtkWidget *frame;
GtkWidget *table;
gchar *str;
options = g_new0 (MagnifyOptions, 1);
......@@ -462,18 +464,21 @@ magnify_options_new (GimpToolInfo *tool_info)
&options->allow_resize);
/* tool toggle */
str = g_strdup_printf (_("Tool Toggle %s"), gimp_get_mod_name_control ());
frame = gimp_enum_radio_frame_new (GIMP_TYPE_ZOOM_TYPE,
gtk_label_new (_("Tool Toggle (<Ctrl>)")),
gtk_label_new (str),
2,
G_CALLBACK (gimp_radio_button_update),
&options->type,
&options->type_w);
gimp_radio_group_set_active (GTK_RADIO_BUTTON (options->type_w),
GINT_TO_POINTER (options->type));
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
gtk_widget_show (frame);
g_free (str);
/* window threshold */
table = gtk_table_new (1, 3, FALSE);
gtk_table_set_col_spacings (GTK_TABLE (table), 2);
......
......@@ -37,6 +37,8 @@
#include "display/gimpdisplay-foreach.h"
#include "display/gimpdisplayshell.h"
#include "widgets/gimpwidgets-utils.h"
#include "gimpeditselectiontool.h"
#include "gimpmovetool.h"
#include "tool_options.h"
......@@ -674,6 +676,7 @@ move_options_new (GimpToolInfo *tool_info)
MoveOptions *options;
GtkWidget *vbox;
GtkWidget *frame;
gchar *str;
options = g_new0 (MoveOptions, 1);
......@@ -688,7 +691,9 @@ move_options_new (GimpToolInfo *tool_info)
vbox = options->tool_options.main_vbox;
/* tool toggle */
frame = gimp_radio_group_new2 (TRUE, _("Tool Toggle (<Ctrl>)"),
str = g_strdup_printf (_("Tool Toggle %s"), gimp_get_mod_name_control ());
frame = gimp_radio_group_new2 (TRUE, str,
G_CALLBACK (gimp_radio_button_update),
&options->move_current,
GINT_TO_POINTER (options->move_current),
......@@ -702,12 +707,15 @@ move_options_new (GimpToolInfo *tool_info)
&options->move_current_w[1],
NULL);
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
gtk_widget_show (frame);
g_free (str);
/* move mask */
frame = gimp_radio_group_new2 (TRUE, _("Move Mode (<Alt>)"),
str = g_strdup_printf (_("Move Mode %s"), gimp_get_mod_name_alt ());
frame = gimp_radio_group_new2 (TRUE, str,
G_CALLBACK (gimp_radio_button_update),
&options->move_mask,
GINT_TO_POINTER (options->move_mask),
......@@ -721,10 +729,11 @@ move_options_new (GimpToolInfo *tool_info)
&options->move_mask_w[1],
NULL);
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
gtk_widget_show (frame);
g_free (str);
return (GimpToolOptions *) options;
}
......
......@@ -31,6 +31,7 @@
#include "core/gimptoolinfo.h"
#include "widgets/gimpenummenu.h"
#include "widgets/gimpwidgets-utils.h"
#include "gimprotatetool.h"
#include "gimpscaletool.h"
......@@ -73,7 +74,7 @@ transform_options_init (TransformOptions *options,
GtkWidget *hbox;
GtkWidget *label;
GtkWidget *frame;
GtkWidget *vbox2;
GtkWidget *table;
GtkWidget *grid_density;
tool_options_init ((GimpToolOptions *) options, tool_info);
......@@ -137,11 +138,6 @@ transform_options_init (TransformOptions *options,
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
gtk_widget_show (frame);
vbox2 = gtk_vbox_new (FALSE, 1);
gtk_container_set_border_width (GTK_CONTAINER (vbox2), 2);
gtk_container_add (GTK_CONTAINER (frame), vbox2);
gtk_widget_show (vbox2);
/* the grid type menu */
options->grid_type_w =
gimp_option_menu_new2 (FALSE,
......@@ -162,22 +158,20 @@ transform_options_init (TransformOptions *options,
gtk_frame_set_label_widget (GTK_FRAME (frame), options->grid_type_w);
gtk_widget_show (options->grid_type_w);
/* the grid density entry */
hbox = gtk_hbox_new (FALSE, 4);
gtk_box_pack_start (GTK_BOX (vbox2), hbox, FALSE, FALSE, 0);
gtk_widget_show (hbox);
label = gtk_label_new (_("Density:"));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
options->grid_size_w =
gtk_adjustment_new (options->grid_size, 1, 128, 1.0, 1.0, 0.0);
grid_density =
gtk_spin_button_new (GTK_ADJUSTMENT (options->grid_size_w), 0, 0);
gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (grid_density), TRUE);
gtk_box_pack_start (GTK_BOX (hbox), grid_density, FALSE, FALSE, 0);
gtk_widget_show (grid_density);
/* the grid density scale */
table = gtk_table_new (1, 3, FALSE);
gtk_container_set_border_width (GTK_CONTAINER (table), 2);
gtk_table_set_col_spacings (GTK_TABLE (table), 2);
gtk_container_add (GTK_CONTAINER (frame), table);
gtk_widget_show (table);
options->grid_size_w = gimp_scale_entry_new (GTK_TABLE (table), 0, 0,
_("Density:"), -1, -1,
options->grid_size,
1.0, 128.0, 1.0, 8.0, 0,
TRUE, 0.0, 0.0,
NULL, NULL);
grid_density = GIMP_SCALE_ENTRY_SPINBUTTON (options->grid_size_w);
g_signal_connect (G_OBJECT (options->grid_size_w), "value_changed",
G_CALLBACK (gimp_transform_tool_grid_density_update),
......@@ -195,6 +189,9 @@ transform_options_init (TransformOptions *options,
if (tool_info->tool_type == GIMP_TYPE_ROTATE_TOOL ||
tool_info->tool_type == GIMP_TYPE_SCALE_TOOL)
{
GtkWidget *vbox2;
gchar *str;
/* the constraints frame */
frame = gtk_frame_new (_("Constraints"));
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
......@@ -207,24 +204,32 @@ transform_options_init (TransformOptions *options,
if (tool_info->tool_type == GIMP_TYPE_ROTATE_TOOL)
{
options->constrain_1_w =
gtk_check_button_new_with_label (_("15 Degrees (<Ctrl>)"));
str = g_strdup_printf (_("15 Degrees %s"),
gimp_get_mod_name_control ());
options->constrain_1_w = gtk_check_button_new_with_label (str);
gtk_box_pack_start (GTK_BOX (vbox2), options->constrain_1_w,
FALSE, FALSE, 0);
gtk_widget_show (options->constrain_1_w);
g_free (str);
g_signal_connect (G_OBJECT (options->constrain_1_w), "toggled",
G_CALLBACK (gimp_toggle_button_update),
&options->constrain_1);
}
else if (tool_info->tool_type == GIMP_TYPE_SCALE_TOOL)
{
options->constrain_1_w =
gtk_check_button_new_with_label (_("Keep Height (<Ctrl>)"));
str = g_strdup_printf (_("Keep Height %s"),
gimp_get_mod_name_control ());
options->constrain_1_w = gtk_check_button_new_with_label (str);
gtk_box_pack_start (GTK_BOX (vbox2), options->constrain_1_w,
FALSE, FALSE, 0);
gtk_widget_show (options->constrain_1_w);
g_free (str);
gimp_help_set_help_data (options->constrain_1_w,
_("Activate both the \"Keep Height\" and\n"
"\"Keep Width\" toggles to constrain\n"
......@@ -234,12 +239,16 @@ transform_options_init (TransformOptions *options,
G_CALLBACK (gimp_toggle_button_update),
&options->constrain_1);
options->constrain_2_w =
gtk_check_button_new_with_label (_("Keep Width (<Alt>)"));
str = g_strdup_printf (_("Keep Width %s"),
gimp_get_mod_name_alt ());
options->constrain_2_w = gtk_check_button_new_with_label (str);
gtk_box_pack_start (GTK_BOX (vbox2), options->constrain_2_w,
FALSE, FALSE, 0);
gtk_widget_show (options->constrain_2_w);
g_free (str);
gimp_help_set_help_data (options->constrain_2_w,
_("Activate both the \"Keep Height\" and\n"
"\"Keep Width\" toggles to constrain\n"
......
......@@ -31,6 +31,7 @@
#include "core/gimptoolinfo.h"
#include "widgets/gimpenummenu.h"
#include "widgets/gimpwidgets-utils.h"
#include "gimprotatetool.h"
#include "gimpscaletool.h"
......@@ -73,7 +74,7 @@ transform_options_init (TransformOptions *options,
GtkWidget *hbox;
GtkWidget *label;
GtkWidget *frame;
GtkWidget *vbox2;
GtkWidget *table;
GtkWidget *grid_density;