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

when scaling an indexed image/layer, add a label telling the user that

2004-01-18  Michael Natterer  <mitch@gimp.org>

	* app/gui/resize-dialog.c: when scaling an indexed image/layer,
	add a label telling the user that indexed layers are always scaled
	without interpolation. Can't simply make the option menu
	insensitive because channels and layer masks are still scaled with
	the chosen interpolation type. Fixes bug #131779.
parent 65c83a6c
2004-01-18 Michael Natterer <mitch@gimp.org>
* app/gui/resize-dialog.c: when scaling an indexed image/layer,
add a label telling the user that indexed layers are always scaled
without interpolation. Can't simply make the option menu
insensitive because channels and layer masks are still scaled with
the chosen interpolation type. Fixes bug #131779.
2004-01-18 Michael Natterer <mitch@gimp.org>
 
* app/tools/gimpinktool.c (ink_set_paint_area): use
......@@ -717,6 +717,19 @@ resize_widget_new (GimpViewable *viewable,
gtk_box_pack_start (GTK_BOX (hbox), option_menu,
FALSE, FALSE, 0);
gtk_widget_show (option_menu);
if (gimp_image_base_type (resize->gimage) == GIMP_INDEXED)
{
label = gtk_label_new (_("Indexed color layers are always scaled "
"without interpolation. The chosen "
"interpolation type will affect scaling "
"channels and masks only."));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.0);
gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT);
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
gtk_box_pack_start (GTK_BOX (main_vbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
}
}
gtk_widget_show (main_vbox);
......
......@@ -717,6 +717,19 @@ resize_widget_new (GimpViewable *viewable,
gtk_box_pack_start (GTK_BOX (hbox), option_menu,
FALSE, FALSE, 0);
gtk_widget_show (option_menu);
if (gimp_image_base_type (resize->gimage) == GIMP_INDEXED)
{
label = gtk_label_new (_("Indexed color layers are always scaled "
"without interpolation. The chosen "
"interpolation type will affect scaling "
"channels and masks only."));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.0);
gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT);
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
gtk_box_pack_start (GTK_BOX (main_vbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
}
}
gtk_widget_show (main_vbox);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment