Commit 11ad04b2 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

creata an UTF-8 filename from the image URI and display that instead of

2004-10-14  Sven Neumann  <sven@gimp.org>

	* app/actions/file-commands.c (file_revert_cmd_callback): creata
	an UTF-8 filename from the image URI and display that instead of
	the URI.

	* app/dialogs/convert-dialog.c (convert_dialog_new): removed the
	palette size warning for transparent images. The number of colors
	is already adjusted to 255. This text was IMO more frightening
	than helpful.
parent ff38758d
2004-10-14 Sven Neumann <sven@gimp.org>
* app/actions/file-commands.c (file_revert_cmd_callback): creata
an UTF-8 filename from the image URI and display that instead of
the URI.
* app/dialogs/convert-dialog.c (convert_dialog_new): removed the
palette size warning for transparent images. The number of colors
is already adjusted to 255. This text was IMO more frightening
than helpful.
2004-10-13 Kevin Cozens <kcozens@cvs.gimp.org>
* plug-ins/script-fu/scripts/add-bevel.scm: two variables were
......
......@@ -290,6 +290,7 @@ file_revert_cmd_callback (GtkAction *action,
else
{
gchar *basename;
gchar *filename;
dialog =
gimp_message_dialog_new (_("Revert Image"), GIMP_STOCK_QUESTION,
......@@ -310,9 +311,12 @@ file_revert_cmd_callback (GtkAction *action,
gdisp);
basename = g_path_get_basename (uri);
filename = file_utils_uri_to_utf8_filename (uri);
gimp_message_box_set_primary_text (GIMP_MESSAGE_DIALOG (dialog)->box,
_("Revert '%s' to '%s'?"),
basename, uri);
basename, filename);
g_free (filename);
g_free (basename);
gimp_message_box_set_text (GIMP_MESSAGE_DIALOG (dialog)->box,
......
......@@ -319,26 +319,6 @@ convert_dialog_new (GimpImage *gimage,
G_CALLBACK (gimp_toggle_button_update),
&dialog->alpha_dither);
/* if the image isn't non-alpha/layered, set the default number of
colours to one less than max, to leave room for a transparent index
for transparent/animated GIFs */
if (gimp_image_has_alpha (gimage))
{
frame = gimp_frame_new (_("[ Warning ]"));
gtk_box_pack_start (GTK_BOX (main_vbox), frame, FALSE, FALSE, 0);
gtk_widget_show (frame);
label = gtk_label_new
(_("You are attempting to convert an image with an alpha channel "
"to indexed colors.\n"
"Do not generate a palette of more than 255 colors if you "
"intend to create a transparent or animated GIF file."));
gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT);
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
gtk_container_add (GTK_CONTAINER (frame), label);
gtk_widget_show (label);
}
return dialog->shell;
}
......
Markdown is supported
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