On Win32, move the "bmp" format to the front. Means less conversion in

2005-04-04  Tor Lillqvist  <tml@novell.com>

	* 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.
This commit is contained in:
Tor Lillqvist 2005-04-04 00:33:35 +00:00 committed by Tor Lillqvist
parent 70accad825
commit 61ca231ce2
2 changed files with 17 additions and 0 deletions

View file

@ -1,3 +1,11 @@
2005-04-04 Tor Lillqvist <tml@novell.com>
* 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 <sven@gimp.org>
* plug-ins/FractalExplorer/FractalExplorer.c: fixed typo that

View file

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