On Tue, 5 Sep 2017 15:10:59 -0700
John Shaver <[email protected]> wrote:

> I think the idea of GResource (from what I just read, haha) is that
> you have it in a separate file so you're not just working with a data
> string, but when the project compiles it gets compiled into the
> resulting executable binary.  Is that not sufficient?

I believe you are correct, and that is indeed what I want.

I have a source PNG image. I have run that through
glib-compile-resources to produce C source and a C header file. The
header file gives me the name of the function to call in the C source
file, gnome_gps_get_resource(). I can compile that.

My problem is determining exactly what C code to use to get the return
from gnome_gps_get_resource() so that gtk_window_set_icon () can use it
without crashing. Is there an intermediate function I should call? Is
there a cast I am missing?

According to the docs, I can tell the resource compiler to convert the
source PNG to a pixbuf, which is what gtk_window_set_icon () wants
for its second parameter. But that crashes also. So I am missing
something.

-- 

The right of the people to be secure in their persons, houses, papers,
and effects, against unreasonable searches and seizures, shall not be
violated, and no Warrants shall issue, but upon probable cause,
supported by Oath or affirmation, and particularly describing the
place to be searched, and the persons or things to be seized.
-- U.S. Const. Amendment IV

Key fingerprint = CE5C 6645 A45A 64E4 94C0  809C FFF6 4C48 4ECD DFDB

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to