Make sure png comes first, otherwise dnd may use bmp by default, loosing

2005-05-25  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkselection.c (gtk_target_list_add_image_targets):
	Make sure png comes first, otherwise dnd may use bmp by
	default, loosing transparency.
This commit is contained in:
Matthias Clasen 2005-05-25 14:02:21 +00:00 committed by Matthias Clasen
parent 4834f5e03d
commit 7b8e0b8bc8
4 changed files with 33 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2005-05-25 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkselection.c (gtk_target_list_add_image_targets):
Make sure png comes first, otherwise dnd may use bmp by
default, loosing transparency.
2005-05-25 Michael Natterer <mitch@imendio.com>
* gtk/gtktextview.c (blink_cb): block the text_layout's "changed"

View File

@ -1,3 +1,9 @@
2005-05-25 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkselection.c (gtk_target_list_add_image_targets):
Make sure png comes first, otherwise dnd may use bmp by
default, loosing transparency.
2005-05-25 Michael Natterer <mitch@imendio.com>
* gtk/gtktextview.c (blink_cb): block the text_layout's "changed"

View File

@ -1,3 +1,9 @@
2005-05-25 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkselection.c (gtk_target_list_add_image_targets):
Make sure png comes first, otherwise dnd may use bmp by
default, loosing transparency.
2005-05-25 Michael Natterer <mitch@imendio.com>
* gtk/gtktextview.c (blink_cb): block the text_layout's "changed"

View File

@ -362,6 +362,21 @@ gtk_target_list_add_image_targets (GtkTargetList *list,
formats = gdk_pixbuf_get_formats ();
/* Make sure png comes first */
for (f = formats; f; f = f->next)
{
GdkPixbufFormat *fmt = f->data;
if (strcmp (gdk_pixbuf_format_get_name (fmt), "png") == 0)
{
formats = g_slist_delete_link (formats, f);
formats = g_slist_prepend (formats, fmt);
break;
}
}
for (f = formats; f; f = f->next)
{
GdkPixbufFormat *fmt = f->data;