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.
This commit is contained in:
Sven Neumann 2004-10-13 23:03:12 +00:00 committed by Sven Neumann
parent ff38758d5a
commit 11ad04b292
3 changed files with 16 additions and 21 deletions

View file

@ -1,3 +1,14 @@
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> 2004-10-13 Kevin Cozens <kcozens@cvs.gimp.org>
* plug-ins/script-fu/scripts/add-bevel.scm: two variables were * plug-ins/script-fu/scripts/add-bevel.scm: two variables were

View file

@ -290,6 +290,7 @@ file_revert_cmd_callback (GtkAction *action,
else else
{ {
gchar *basename; gchar *basename;
gchar *filename;
dialog = dialog =
gimp_message_dialog_new (_("Revert Image"), GIMP_STOCK_QUESTION, gimp_message_dialog_new (_("Revert Image"), GIMP_STOCK_QUESTION,
@ -310,9 +311,12 @@ file_revert_cmd_callback (GtkAction *action,
gdisp); gdisp);
basename = g_path_get_basename (uri); 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, gimp_message_box_set_primary_text (GIMP_MESSAGE_DIALOG (dialog)->box,
_("Revert '%s' to '%s'?"), _("Revert '%s' to '%s'?"),
basename, uri); basename, filename);
g_free (filename);
g_free (basename); g_free (basename);
gimp_message_box_set_text (GIMP_MESSAGE_DIALOG (dialog)->box, gimp_message_box_set_text (GIMP_MESSAGE_DIALOG (dialog)->box,

View file

@ -319,26 +319,6 @@ convert_dialog_new (GimpImage *gimage,
G_CALLBACK (gimp_toggle_button_update), G_CALLBACK (gimp_toggle_button_update),
&dialog->alpha_dither); &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; return dialog->shell;
} }