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
This commit is contained in:
Sven Neumann 2007-02-18 08:57:16 +00:00 committed by Sven Neumann
parent 1ad786f37c
commit 1504a7f5bd
2 changed files with 14 additions and 5 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -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);