The Indexed Color Conversion dialog is far too wide (~1200 pixels) because of
the warning at the bottom. For some reason the label doesn't wrap properly
despite the call to gtk_label_set_line_wrap in convert.c, perhaps because
the width is not limited. Hard-coding a width is tempting but hardly the
right thing to do (i18n and all that). This is with gtk 1.2.7, by the way.

I had some success turning off wrap and breaking the lines manually
(patch below). Is this a good idea?

--- convert.c~  Sun Mar 26 08:09:09 2000
+++ convert.c   Sun Apr 23 03:18:15 2000
@@ -762,12 +762,12 @@
       gtk_widget_show (vbox);
 
       label = gtk_label_new
-       (_("You are attempting to convert an image with alpha/layers "
-          "from RGB/GRAY to INDEXED.\nYou should not generate a "
-          "palette of more than 255 colors if you intend to create "
+       (_("You are attempting to convert an image with alpha/layers\n"
+          "from RGB/GRAY to INDEXED. You should not generate a\n"
+          "palette of more than 255 colors if you intend to create\n"
           "a transparent or animated GIF file from this image."));
       gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT);
-      gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
+      gtk_label_set_line_wrap (GTK_LABEL (label), FALSE);
       gtk_container_add (GTK_CONTAINER (vbox), label);
       gtk_widget_show (label);
 

Reply via email to