loading image resources from relative directories

Luca Bacci <[email protected]> Wed, 28 Feb 2018 16:56:52 +0100
Newsgroups gmane.comp.gnome.glade.user
Message-ID <CAJSEPt27r2bL6xrWzD5AhGrh2MbL-XV8G9jGK=Gd_wAm-_cuvw@mail.gmail.com>
--===============6754514524457948804==
Content-Type: multipart/alternative; boundary="001a1144370cb7163a056647ca7a"

--001a1144370cb7163a056647ca7a
Content-Type: text/plain; charset="UTF-8"

Hello, I have a problem regarding using glade with image data in
subdirectories.

I have a .ui file in a directory, with a 'icons' subdirectory

./example.ui
./icons/icon.svg
./icons/icon2.svg
...

I have many GtkImage where 'pixbuf' property is set to 'icons/icon.svg',
'icons/icon2.svg' ecc.

Finally, I have added this to the .ui definiton:

<requires lib="gtk+" version="3.20"/>
  <!-- interface-local-resource-path . -->
  ...

But Glade doesn't show icons. Is there a way to get this to work?
Many thanks!

--001a1144370cb7163a056647ca7a
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hello, I have a problem regarding using glade with im=
age data in subdirectories.</div><div><br></div><div>I have a .ui file in a=
 directory, with a &#39;icons&#39; subdirectory<br></div><div><br></div><di=
v>./example.ui</div><div>./icons/icon.svg</div><div>./icons/icon2.svg<br></=
div><div>...<br></div><div><br></div><div>I have many GtkImage where &#39;p=
ixbuf&#39; property is set to &#39;icons/icon.svg&#39;,  &#39;icons/icon2.s=
vg&#39; ecc.<br></div><div><br></div><div>Finally, I have added this to the=
 .ui definiton:</div><div><br></div><div>&lt;requires lib=3D&quot;gtk+&quot=
; version=3D&quot;3.20&quot;/&gt;<br>=C2=A0 &lt;!-- interface-local-resourc=
e-path . --&gt;<br></div><div>=C2=A0 ...</div><div><br></div><div>But Glade=
 doesn&#39;t show icons. Is there a way to get this to work?</div><div>Many=
 thanks!<br></div></div>

--001a1144370cb7163a056647ca7a--

--===============6754514524457948804==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KR2xhZGUtdXNl
cnMgbWFpbGxpc3QgIC0gIEdsYWRlLXVzZXJzQGxpc3RzLmRvdC5uZXQKaHR0cDovL2xpc3RzLmRv
dC5uZXQvbWFpbG1hbi9saXN0aW5mby9nbGFkZS11c2Vycwo=

--===============6754514524457948804==--