Bug 698867

Summary: [abrt] ibus-1.3.99.20110408-2.fc15: icon.py:38:__init__:GError: Icon 'gtk-missing-image' not present in theme
Product: [Fedora] Fedora Reporter: d. johnson <drjohnson1>
Component: fedora-icon-themeAssignee: Ray Strode [halfline] <rstrode>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: i18n-bugs, rstrode, shawn.p.huang, tfujiwar
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:0388d8427aeddfcdd724339e64453d56bceee3be
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-10 06:45:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: backtrace none

Description d. johnson 2011-04-22 05:03:36 UTC
abrt version: 2.0.1
comment: Clicked on toolbar icons in XFCE.
executable: /usr/share/ibus/ui/gtk/main.py
cmdline: /usr/bin/python /usr/share/ibus/ui/gtk/main.py -s
component: ibus
package: ibus-1.3.99.20110408-2.fc15
kernel: 2.6.38.2-9.fc15.x86_64
reason: icon.py:38:__init__:GError: Icon 'gtk-missing-image' not present in theme
architecture: x86_64
uid: 500
username: user1
os_release: Fedora release 15 (Lovelock)
time: 1303448542

backtrace
-----
icon.py:38:__init__:GError: Icon 'gtk-missing-image' not present in theme

Traceback (most recent call last):
  File "/usr/share/ibus/ui/gtk/panel.py", line 499, in __status_icon_activate_cb
    menu.popup(None, None,
  File "/usr/share/ibus/ui/gtk/panel.py", line 455, in __create_im_menu
    for i, engine in enumerate(engines):
  File "/usr/share/ibus/ui/gtk/icon.py", line 38, in __init__
    pixbuf = theme.load_icon(gtk.STOCK_MISSING_IMAGE, size, 0)
GError: Icon 'gtk-missing-image' not present in theme

Local variables in innermost frame:
theme: <gtk.IconTheme object at 0x1f560a0 (GtkIconTheme at 0x1f14300)>
icon: 'gtk-close'
pixbuf: None
self: <IconWidget object at 0x1f50fa0 (icon+IconWidget at 0x1e9aa20)>
size: 16

Comment 1 d. johnson 2011-04-22 05:03:39 UTC
Created attachment 494055 [details]
File: backtrace

Comment 2 fujiwara 2011-04-25 01:57:07 UTC
I guess your XFCE doesn't install fedora-icon-theme and/or gnome-themes
Could you run the following script on the XFCE desktop?

% cat a.py 
import gtk

print "theme_name", gtk.settings_get_default().props.gtk_theme_name
print "icon_theme_name", gtk.settings_get_default().props.gtk_icon_theme_name
print "fallback_icon_theme",
gtk.settings_get_default().props.gtk_fallback_icon_theme

% python a.py
theme_name Adwaita
icon_theme_name Fedora
fallback_icon_theme None

% rpm -qf /usr/share/icons/Fedora/32x32/places/start-here.png 
fedora-logos-15.0.0-2.fc15.noarch
# grep Inherits /usr/share/icons/Fedora/index.theme 
Inherits=Mist
# rpm -qf /usr/share/icons/Fedora/index.theme 
fedora-icon-theme-1.0.0-9.fc15.noarch
# grep Inherits /usr/share/icons/Mist/index.theme 
Inherits=gnome
# rpm -qf /usr/share/icons/Mist/index.theme 
gnome-themes-2.32.0-6.fc15.noarch

Comment 3 d. johnson 2011-05-02 14:37:56 UTC
Sure:

[user1@f15b-rc2]~% cat - > a.py
import gtk

print "theme_name", gtk.settings_get_default().props.gtk_theme_name
print "icon_theme_name", gtk.settings_get_default().props.gtk_icon_theme_name
print "fallback_icon_theme",
gtk.settings_get_default().props.gtk_fallback_icon_theme

[user1@f15b-rc2]~% python ./a.py 
Xlib:  extension "RANDR" missing on display "localhost:10.0".
theme_name Adwaita
icon_theme_name gnome
fallback_icon_theme
[user1@f15b-rc2]~% rpm -qf /usr/share/icons/Fedora/32x32/places/start-here.png 
fedora-logos-15.0.0-2.fc15.noarch
[user1@f15b-rc2]~% grep Inherits /usr/share/icons/Fedora/index.theme 
Inherits=Mist
[user1@f15b-rc2]~% rpm -qf /usr/share/icons/Fedora/index.theme 
fedora-icon-theme-1.0.0-9.fc15.noarch
[user1@f15b-rc2]~% grep Inherits /usr/share/icons/Mist/index.theme 
grep: /usr/share/icons/Mist/index.theme: No such file or directory
[user1@f15b-rc2]~% rpm -qf /usr/share/icons/Mist/index.theme 
error: file /usr/share/icons/Mist/index.theme: No such file or directory


Looks like gnome-themes is not installed, even though @gnome-desktop + @xfce-desktop + @lxde-desktop are. Nothing requires it,and only gnome-themes-standard is listed in the groupinfo for those three.  (gnome-themes-standard does not include gnome-themes)

Comment 4 fujiwara 2011-05-06 00:03:40 UTC
(In reply to comment #3)
> print "fallback_icon_theme",
> gtk.settings_get_default().props.gtk_fallback_icon_theme

Oh, I meant one line without a line feed. It seems they are two lines.

Probably I think it might be better for fedora-icon-theme to depend on gnome-themes and for fedora-logos to depend on fedora-icon-theme.
Transferring to fedora-icon-theme.

Comment 5 d. johnson 2011-05-06 03:23:58 UTC
Clean install from tc1 DVD, unselect gnome, select xfce.  Still missing package "gnome-themes", and icons do not display properly without them.

Does not matter to me which theme it uses, as long as it is setup properly and displays the icons.

Comment 6 d. johnson 2011-05-06 21:46:30 UTC
Upgrading to fedora-icon-theme-0:1.0.0-10.fc15.noarch (which has a dep on gnome-themes) solves this issue.

Comment 7 fujiwara 2011-05-09 05:43:22 UTC
I checked fedora-icon-theme-0:1.0.0-10.fc15.noarch .
I think this bug can be closed by fedora-icon-theme-0:1.0.0-10.fc15.noarch .