Commit 1504a7f5 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

skip Windows ICO as writable format. It's not well suited as a general

2007-02-18  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimppixbuf.c (gimp_pixbuf_targets_add): skip 
Windows
	ICO as writable format. It's not well suited as a general image
	exchange format and the GdkPixbuf save routine seems to be 
buggy.


svn path=/trunk/; revision=21936
parent 1ad786f3
2007-02-18 Sven Neumann <sven@gimp.org>
* app/widgets/gimppixbuf.c (gimp_pixbuf_targets_add): skip Windows
ICO as writable format. It's not well suited as a general image
exchange format and the GdkPixbuf save routine seems to be buggy.
2007-02-18 Mukund Sivaraman <muks@mukund.org>
* plug-ins/common/png.c: Moved an invariant (in the last
......@@ -70,9 +70,13 @@ gimp_pixbuf_targets_add (GtkTargetList *target_list,
for (type = mime_types; *type; type++)
{
GdkAtom atom = gdk_atom_intern (*type, FALSE);
/* skip Windows ICO as writable format */
if (writable && strcmp (*type, "image/x-icon") == 0)
continue;
gtk_target_list_add (target_list,
gdk_atom_intern (*type, FALSE), 0, info);
gtk_target_list_add (target_list, atom, 0, info);
}
g_strfreev (mime_types);
......@@ -101,9 +105,8 @@ gimp_pixbuf_targets_remove (GtkTargetList *target_list)
for (type = mime_types; *type; type++)
{
GdkAtom atom = gdk_atom_intern (*type, FALSE);
gtk_target_list_remove (target_list, atom);
gtk_target_list_remove (target_list,
gdk_atom_intern (*type, FALSE));
}
g_strfreev (mime_types);
......
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