forked from AuroraMiddleware/gtk
Revert "Use GtkLoader for image loading"
This reverts commit da115ad075
.
This commit is contained in:
parent
d6d7299859
commit
3a5091cb6e
@ -19,7 +19,6 @@
|
|||||||
#include <gdk/gdk.h>
|
#include <gdk/gdk.h>
|
||||||
#include "gdkpixbufutilsprivate.h"
|
#include "gdkpixbufutilsprivate.h"
|
||||||
#include "gtkscalerprivate.h"
|
#include "gtkscalerprivate.h"
|
||||||
#include "gtkloaderprivate.h"
|
|
||||||
|
|
||||||
#include "gdk/gdktextureprivate.h"
|
#include "gdk/gdktextureprivate.h"
|
||||||
|
|
||||||
@ -589,7 +588,7 @@ gdk_paintable_new_from_bytes_scaled (GBytes *bytes,
|
|||||||
if (gdk_texture_can_load (bytes))
|
if (gdk_texture_can_load (bytes))
|
||||||
{
|
{
|
||||||
/* We know these formats can't be scaled */
|
/* We know these formats can't be scaled */
|
||||||
inner = GDK_PAINTABLE (gtk_loader_new (bytes));
|
inner = GDK_PAINTABLE (gdk_texture_new_from_bytes (bytes, NULL));
|
||||||
if (inner == NULL)
|
if (inner == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user