use a less aggressive PNG compression level (bug #305340).

2005-05-26  Sven Neumann  <sven@gimp.org>

	* gtk/gtkselection.c (gtk_selection_data_set_pixbuf): use a less
	aggressive PNG compression level (bug #305340).
This commit is contained in:
Sven Neumann 2005-05-26 16:20:08 +00:00 committed by Sven Neumann
parent bea236b9c1
commit bc6c9745d8
4 changed files with 22 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2005-05-26 Sven Neumann <sven@gimp.org>
* gtk/gtkselection.c (gtk_selection_data_set_pixbuf): use a less
aggressive PNG compression level (bug #305340).
2005-05-26 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkdrawable-win32.c (_gdk_win32_blit): If blitting

View File

@ -1,3 +1,8 @@
2005-05-26 Sven Neumann <sven@gimp.org>
* gtk/gtkselection.c (gtk_selection_data_set_pixbuf): use a less
aggressive PNG compression level (bug #305340).
2005-05-26 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkdrawable-win32.c (_gdk_win32_blit): If blitting

View File

@ -1,3 +1,8 @@
2005-05-26 Sven Neumann <sven@gimp.org>
* gtk/gtkselection.c (gtk_selection_data_set_pixbuf): use a less
aggressive PNG compression level (bug #305340).
2005-05-26 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkdrawable-win32.c (_gdk_win32_blit): If blitting

View File

@ -1361,17 +1361,20 @@ gtk_selection_data_set_pixbuf (GtkSelectionData *selection_data,
if (selection_data->target == atom)
{
str = NULL;
type = gdk_pixbuf_format_get_name (fmt),
type = gdk_pixbuf_format_get_name (fmt);
result = gdk_pixbuf_save_to_buffer (pixbuf, &str, &len,
type, NULL, NULL);
if (result)
type, NULL,
((strcmp (type, "png") == 0) ?
"compression" : NULL), "2",
NULL);
if (result)
gtk_selection_data_set (selection_data,
atom, 8, (guchar *)str, len);
g_free (type);
g_free (str);
g_strfreev (mimes);
g_slist_free (formats);
return result;
}
}