[Glade-users] Icons in Glade
- From: lrn1986 at gmail.com (LRN)
- Subject: [Glade-users] Icons in Glade
- Date: Wed, 09 Apr 2014 12:26:03 +0400
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 09.04.2014 10:50, Bertus Dries wrote:
On Monday, April 07, 2014 6:57 AM, LRN wrote:
On 07.04.2014 8:42, Bertus Dries wrote:
I want to alter the icon I use in a Gtk program using glade. I
do have an .ico file for this icon. In Glade I found two boxes
which suggests they have influence on the icons, they are named
?Pictogram? and ?Pictogram name? in the first you can find a
filename but entering the name of my icon does not alter the
used GTK icon. The second gets me a list with standard icons
which I can choose and which will be used, but I cannot enter
my icon in it. How can I alter the standard GTK icon into my
icon.
Try converting the file into png and putting it somewhere into
<prefix>/share/icons/gnome/... directory (preferably under
'applications' category?). Then re-run gtk-update-icon-cache.exe
-f -t <prefix>/share/icons/gnome Then change the icon name in
glade to the name of the icon you've added (without extension)
and see if it works. Usually glade should list that icon as one
of the known icons in the "Select Named Icon" dialog.
I just tried your method. I don't have a subdirectory named \gnome.
but I found a subdirectory name \hicolor which ha subdirectories in
various sizes from 16*16 up to scalable the glade.png was is
several under a subdirectory \apps so I tried to add my icon in the
scalable and the 32*32 It did not work. My icon did not appear in
the Select Named Icon Dialog. Which format should I use, I used
32*32.
Well, no idea. The way GTK decides on which icon is to use is seems
kind of convoluted to me. Normally i'd advice hooking up GTK to gdb
and looking how it loads its icons, but with the icon cache in the
middle this is almost 100% futile.
- --
O< ascii ribbon - stop html email! - www.asciiribbon.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)
iQEcBAEBAgAGBQJTRQQZAAoJEOs4Jb6SI2CwOQ0IAMEQsssZpzSEEv45mD/x38Ye
OFJAANDGpXJCxBqIEJ4XmC9m/nmEb9giiaHGETaw0EPTdRWC8i6EN2/52GT7nOS/
fldyw+xZ4PWW67g99dtiBQe716QNhZuOj0Kkgt1whEfZeAvEwhlUdWNkK5qRyBB+
bRQTSxh2IL8KfTnSauVOuVU5ZaOebOPSnk08NAGDXNHa+yeoacepyLAp6zZsSIeO
2ODrqzw0EQLwBMF/O216ofsIGgHZitykrR/SmIS5aKc2fwLGC1sNr9vtEmk+G5TS
38k3gAw6dmOqvjGchyDByCPLI5D8iEpRVMJNmt9YxQhS+uZjSKfYRJqvwEOvenA=
=0A78
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]