Re: Working with embedded images with GResource, GdkPixbuf and GtkWidget
- From: infirit <infirit gmail com>
- To: Alessandro Francesconi <misterbirra hotmail it>, "gtk-app-devel-list gnome org" <gtk-app-devel-list gnome org>
- Subject: Re: Working with embedded images with GResource, GdkPixbuf and GtkWidget
- Date: Sun, 11 Nov 2018 23:11:53 +0100
Op 11-11-18 om 18:23 schreef Alessandro Francesconi:
I can’t really understand how Pixbuf expects from the GResource data… also i read in the docs that
“gdk_pixbuf_new_from_inline has been deprecated since version 2.32 and should not be used in newly-written
code. Use GResource instead.”… so what’s the correct way to create Pixbuf for About boxes and GdkWidgets for
image button?
Never used GResource but.. The GdkPixbuf docs has
gdk_pixbuf_new_from_resource() which will take the path to the pixdata
in the GResource. The path based on your example probably is
/myapp/icons/logo.png.
~infirit
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]