Commit f7b79077 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

applied a patch from Brion Vibber that sets the 'Save color values from

2004-07-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/tiff.c: applied a patch from Brion Vibber that
	sets the 'Save color values from transparent pixels' insensitive
	when there's no alpha channel. Merged from HEAD branch.
parent 5a06a4df
2004-07-12 Sven Neumann <sven@gimp.org>
* plug-ins/common/tiff.c: applied a patch from Brion Vibber that
sets the 'Save color values from transparent pixels' insensitive
when there's no alpha channel. Merged from HEAD branch.
2004-07-11 Philip Lafleur <plafleur@cvs.gnome.org>
* app/widgets/gimpdevices.c (gimp_devices_check_change):
......
......@@ -142,7 +142,7 @@ static gboolean save_image (const gchar *filename,
gint32 drawable,
gint32 orig_image);
static gboolean save_dialog (void);
static gboolean save_dialog (gboolean alpha);
static void comment_entry_callback (GtkWidget *widget,
gpointer data);
......@@ -349,7 +349,7 @@ run (const gchar *name,
gimp_parasite_free (parasite);
/* First acquire information with a dialog */
if (! save_dialog ())
if (! save_dialog (gimp_drawable_has_alpha (drawable)))
status = GIMP_PDB_CANCEL;
break;
......@@ -2071,7 +2071,7 @@ save_image (const gchar *filename,
}
static gboolean
save_dialog (void)
save_dialog (gboolean alpha)
{
GtkWidget *dlg;
GtkWidget *vbox;
......@@ -2115,7 +2115,8 @@ save_dialog (void)
toggle = gtk_check_button_new_with_mnemonic
( _("Save _color values from transparent pixels"));
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle),
tsvals.save_transp_pixels);
alpha && tsvals.save_transp_pixels);
gtk_widget_set_sensitive (toggle, alpha);
gtk_box_pack_start (GTK_BOX (vbox), toggle, FALSE, FALSE, 0);
gtk_widget_show (toggle);
......
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