forked from AuroraMiddleware/gtk
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:
parent
4834f5e03d
commit
7b8e0b8bc8
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user