[gtk/image-loading: 3/12] builder: Stop using pixbufutils
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/image-loading: 3/12] builder: Stop using pixbufutils
- Date: Fri, 17 Sep 2021 01:44:26 +0000 (UTC)
commit fecb31b70646dd8bb7d66d63297abaa492455d2e
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Sep 14 15:17:29 2021 -0400
builder: Stop using pixbufutils
We can just use gdk_pixbuf_new_from_resource here.
gtk/gtkbuilder.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/gtk/gtkbuilder.c b/gtk/gtkbuilder.c
index 14d03298d7..697246790b 100644
--- a/gtk/gtkbuilder.c
+++ b/gtk/gtkbuilder.c
@@ -210,7 +210,6 @@
#include "gtkbuilderprivate.h"
-#include "gdkpixbufutilsprivate.h"
#include "gtkbuildableprivate.h"
#include "gtkbuilderlistitemfactory.h"
#include "gtkbuilderscopeprivate.h"
@@ -226,7 +225,6 @@
#include "gtktypebuiltins.h"
#include "gtkicontheme.h"
#include "gtkiconthemeprivate.h"
-#include "gdkpixbufutilsprivate.h"
#include "gtkdebug.h"
@@ -2401,7 +2399,7 @@ gtk_builder_value_from_string_type (GtkBuilder *builder,
g_warning ("Could not load image '%s': %s", string, tmp_error->message);
g_error_free (tmp_error);
- pixbuf = _gdk_pixbuf_new_from_resource (IMAGE_MISSING_RESOURCE_PATH, "png", NULL);
+ pixbuf = gdk_pixbuf_new_from_resource (IMAGE_MISSING_RESOURCE_PATH, NULL);
}
g_value_take_object (value, pixbuf);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]