Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 275601 - Gtk+ application-specific icons not showing
Summary: Gtk+ application-specific icons not showing
Status: RESOLVED DUPLICATE of bug 267018
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-27 13:26 UTC by Felipe Lessa
Modified: 2009-06-28 00:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
$ qlist gnome-power-manager (qlist-gnome-power-manager,23.86 KB, text/plain)
2009-06-27 15:19 UTC, Felipe Lessa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Felipe Lessa 2009-06-27 13:26:48 UTC
Hi!

Some of the application specific icons are not showing up.  Upon closer inspection, it appears to me that it depends on the category of the icon.  I can't really tell on what package the problem is, but I've managed to produce a small test case.  I've seen this problem primarily on gnome-power-manager and banshee.

I would consider this a major problem because, for example, I can't read my battery status anymore because instead of a nice battery icon I get a "missing icon".  Also, it is really annoying.  But I guess I'll leave as normal because it doesn't seem to affect lots of people.

Reproducible: Always

Steps to Reproduce:
1. Install gnome-power-manager (just because of its icons). 
2. Compile the test case with "gcc -o test -Wall test.c `pkg-config --cflags gtk+-2.0` `pkg-config --libs gtk+-2.0`".
3. Run the test case with "./test".

Actual Results:  
An image of an hibernation icon ("Zzzz...") and a blank sheet of paper (which is actually black inside) representing a missing icon.

Expected Results:  
An AC adapter icon instead of paper.

The test case is extremely simple:


------------------------------------------------------------------------------
#include <gtk/gtk.h>

int main (int argc, char *argv[]) {
    GtkWidget *window, *box, *image;

    gtk_init(&argc, &argv);
    gtk_icon_theme_append_search_path (gtk_icon_theme_get_default(),
                                       "/usr/share/gnome-power-manager/icons");
    window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
    gtk_widget_show(window);
    box = gtk_hbox_new(TRUE, 10);
    gtk_container_add(GTK_CONTAINER(window), box);
    gtk_widget_show(box);

    image = gtk_image_new_from_icon_name("gpm-hibernate", GTK_ICON_SIZE_DIALOG);
    gtk_container_add(GTK_CONTAINER(box), image);
    gtk_widget_show(image);

    image = gtk_image_new_from_icon_name("gpm-ac-adapter", GTK_ICON_SIZE_DIALOG);
    gtk_container_add(GTK_CONTAINER(box), image);
    gtk_widget_show(image);

    gtk_main();
    return 0;
}
------------------------------------------------------------------------------

Thanks a lot!
Comment 1 Felipe Lessa 2009-06-27 13:29:42 UTC
Oops, here's some system info:

$ emerge --info
Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-tuxonice-r3 x86_64)
=================================================================
System uname: Linux-2.6.29-tuxonice-r3-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T5450_@_1.66GHz-with-glibc2.2.5
Timestamp of tree: Thu, 25 Jun 2009 22:00:11 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://www.las.ic.unicamp.br/pub/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ "
LANG="pt_BR.UTF-8"
LC_ALL="pt_BR.UTF8"
LDFLAGS="-Wl,-O1"
LINGUAS="pt_BR pt ja ja_JP"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/haskell /usr/portage/local/layman/armagetron /usr/portage/local/layman/x11"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi adns alsa amd64 amr amrnb amrwb autoipd avahi bash-completion berkdb bluetooth bonjour bzip2 cairo cdr cjk cleartype cli consolekit cracklib crypt css cups daap dar64 dbus dga dirac djvu dri dvd dvdr dvdread eds emacs encode exif fastcgi fbcon ffmpeg flac fontconfig fortran gdbm gif glade glibc-omitfp glitz gmp gnome gnome-keyring gnutls gpm gs gstreamer gtk hal hddtemp hscolour iconv id3tag imlib immqt-bc ipv6 isdnlog java java6 javascript jce jpeg kakasi laptop latex libburn libffi libnotify libsexy lm_sensors lzma lzo mad matroska mbox midi mmx mng mono mp3 mpeg msn mtp mudflap mule multilib nautilus ncurses networkmanager nls nptl nptlonly ntp ofx ogg opengl openmp pam pcre pdf perl pidgin png policykit postscript pppd pulseaudio python quicktime readline reflection rtc schroedinger sdl session sound speex spell spl sse sse2 ssl ssse3 startup-notification svg sysfs tcpd theora threads tiff totem truetype type1 unicode usb v4l2 vorbis wifi wmf x264 xattr xcomposite xft xinerama xml xmp xorg xpm xulrunner xv xvid xvmc zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pt_BR pt ja ja_JP" USERLAND="GNU" VIDEO_CARDS="i810 i945 intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


$ eix -e gtk+
[I] x11-libs/gtk+
     Available versions:  
	(1)	1.2.10-r12
	(2)	2.12.11 (~)2.12.12 2.14.7-r2 (~)2.16.1
	{X cups debug doc jpeg jpeg2k linguas_az linguas_ca linguas_cs linguas_da linguas_de linguas_el linguas_es linguas_et linguas_eu linguas_fi linguas_fr linguas_ga linguas_gl linguas_hr linguas_hu linguas_it linguas_ja linguas_ko linguas_lt linguas_nl linguas_nn linguas_no linguas_pl linguas_pt linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sr linguas_sv linguas_tr linguas_uk linguas_vi nls tiff vim-syntax xinerama}
     Installed versions:  2.16.1(2)(09:56:17 13-06-2009)(X cups jpeg tiff xinerama -debug -doc -jpeg2k -vim-syntax)
     Homepage:            http://www.gtk.org/
     Description:         Gimp ToolKit +

Comment 2 Romain Perier (RETIRED) gentoo-dev 2009-06-27 14:11:15 UTC
Your example program works fine for me (no missing icons).

1)° Can you give the output of 'qlist gnome-power-manager' and make an attachment as a logfile in this bug ?

2)° Does your program display GTK-WARNING in your terminal or something else ?
Comment 3 Felipe Lessa 2009-06-27 15:19:10 UTC
Created attachment 195887 [details]
$ qlist gnome-power-manager
Comment 4 Felipe Lessa 2009-06-27 15:20:32 UTC
(In reply to comment #2)
> 2)° Does your program display GTK-WARNING in your terminal or something else ?

No, nothing, unfortunately.
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-06-27 23:48:46 UTC
I see you have kde stuff installed, could you be experiencing bug #267018 ?
Comment 6 Felipe Lessa 2009-06-28 00:34:58 UTC
(In reply to comment #5)
> I see you have kde stuff installed, could you be experiencing bug #267018 ?

BINGO!  Removing /usr/kde/3.5/share/icons/hicolor/index.theme solved the problem.

Thanks, I'd never find this out alone!

*** This bug has been marked as a duplicate of bug 267018 ***