Re: initialize `background-image` with a resource file
From: Andrew Potter <agpotter gmail com>
To: Master <alinajafian81 gmail com>
Cc: gtkmm-list gnome org
Subject: Re: initialize `background-image` with a resource file
Date: Tue, 23 Aug 2022 12:21:19 -0700
On Tue, Aug 23, 2022 at 10:44 AM Master via gtkmm-list <gtkmm-list gnome org> wrote:
The problem is that I dont know how to tell the `background-image` inside the style provider to "get the image from resource" instead of "file" please help me.
Of course, you must define a gresource xml (Here, I've used the gresource prefix org/custom/example, but you will want to use your own namespace), compile it with glib-compile-resources and include it in your build system appropriately.