forked from AuroraMiddleware/gtk
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:
parent
bea236b9c1
commit
bc6c9745d8
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user