finding icon using Gtk2::IconTheme->lookup_icon
- From: Mitsutoshi Kiuchi <mkiuchi users sourceforge jp>
- To: gtk-perl-list gnome org
- Subject: finding icon using Gtk2::IconTheme->lookup_icon
- Date: Tue, 10 Mar 2009 19:22:04 +0900
Hello.
When I executed Gtk2::IconTheme->get_search_path,
return is like this.
$VAR1 = '/home/kiuchi/.icons';
$VAR2 = '/home/kiuchi/.local/share/icons';
$VAR3 = '/usr/local/share/icons';
$VAR4 = '/usr/share/icons';
$VAR5 = '/usr/local/share/pixmaps';
$VAR6 = '/usr/share/pixmaps';
and Gtk2::IconTheme->lookup_icon("myapp", 48, "no-svg") fails,
when I put myapp.png under /usr/share/icons/hicolor/48x48/apps.
Accoding to Freedesktop.org's Icon Theme Specification
(http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html),
I should put myapp.png to /usr/share/icons/hicolor/48x48/apps.
When I put myapp.png under /usr/share/pixmaps, lookup_icon succeed.
Should I find myapp.png from the result of get_search_path by hand ?
Or is there something wrong with the function of lookup_icon ?
Regards.
Kiuchi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]