From 61ca231ce288a537bcd0402b38df27bd47e8ae37 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Mon, 4 Apr 2005 00:33:35 +0000 Subject: [PATCH] On Win32, move the "bmp" format to the front. Means less conversion in 2005-04-04 Tor Lillqvist * app/widgets/gimpclipboard.c (gimp_clipboard_format_compare): On Win32, move the "bmp" format to the front. Means less conversion in most cases, as other apps on Win32 typically provide/want the BMP format on the Clipboard. (Actually CF_DIB, but that's the same, just without the BMP file header.) See also bug #168173. --- ChangeLog | 8 ++++++++ app/widgets/gimpclipboard.c | 9 +++++++++ 2 files changed, 17 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6c236d33fd..38e62e8980 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2005-04-04 Tor Lillqvist + + * app/widgets/gimpclipboard.c (gimp_clipboard_format_compare): On + Win32, move the "bmp" format to the front. Means less conversion + in most cases, as other apps on Win32 typically provide/want the + BMP format on the Clipboard. (Actually CF_DIB, but that's the + same, just without the BMP file header.) See also bug #168173. + 2005-04-04 Sven Neumann * plug-ins/FractalExplorer/FractalExplorer.c: fixed typo that diff --git a/app/widgets/gimpclipboard.c b/app/widgets/gimpclipboard.c index 50b997755c..ca00797610 100644 --- a/app/widgets/gimpclipboard.c +++ b/app/widgets/gimpclipboard.c @@ -498,6 +498,15 @@ gimp_clipboard_format_compare (GdkPixbufFormat *a, gchar *b_name = gdk_pixbuf_format_get_name (b); gint retval = 0; +#ifdef GDK_WINDOWING_WIN32 + /* move BMP to the front of the list */ + if (strcmp (a_name, "bmp") == 0) + retval = -1; + else if (strcmp (b_name, "bmp") == 0) + retval = 1; + else +#endif + /* move PNG to the front of the list */ if (strcmp (a_name, "png") == 0) retval = -1;