Re: Composite window with GTK+3.
- From: Igor Korot <ikorot01 gmail com>
- To: gianmt gnome org, "gtk-list gnome org" <gtk-list gnome org>
- Subject: Re: Composite window with GTK+3.
- Date: Thu, 27 Aug 2015 00:51:55 -0400
Hi, Gian,
On Mon, Aug 24, 2015 at 4:56 AM, Gian Mario Tagliaretti
<gianmt gnome org> wrote:
On 24 August 2015 at 05:49, Igor Korot <ikorot01 gmail com> wrote:
Hi Igor,
So then this path becomes obsolete, since it is compiled into the binary?
Or not?
And how to properly format it?
You might want to have a look at how GResource [1] works:
[1] https://developer.gnome.org/gio/stable/GResource.html
Sorry for the delay.
So if I understand correctly I need to create an xml file description
in the form
[code]
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/org/gtk/Example">
<file>data/splashscreen.png</file>
<file compressed="true">dialog.ui</file>
<file preprocess="xml-stripblanks">menumarkup.xml</file>
</gresource>
</gresources>
[/code]
Then run glib-compile-resource passing "--generate-source" and
"--generate-header" options to it and then just include the source
code
directly instead of loading the resource from the file like GtkWidget
page suggested which I referenced in the OP.
And of course no "bind_template_child" call as it will be a source code.
Do I understand correctly?
Thank you.
Cheers
--
Gian Mario Tagliaretti
GNOME Foundation member
gianmt gnome org
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]