[Fedora-i18n-bugs] [Bug 678274] [abrt] ibus-1.3.99.20110127-4.fc15: icon.py:38:__init__:GError: Icon 'gtk-missing-image' not present in theme
bugzilla at redhat.com
bugzilla at redhat.com
Thu Mar 10 05:03:19 UTC 2011
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=678274
--- Comment #11 from dominique <chepioq at gmail.com> 2011-03-10 00:03:18 EST ---
Hi,
I can see the ibus panel without error
I replace my icon.py by your debug one, for the diff I have:
# diff -u /usr/share/ibus/ui/gtk/icon.py.orig /usr/share/ibus/ui/gtk/icon.py
--- /usr/share/ibus/ui/gtk/icon.py.orig 2011-03-10 05:51:01.389746104 +0100
+++ /usr/share/ibus/ui/gtk/icon.py 2011-03-10 05:52:40.230510478 +0100
@@ -27,6 +27,13 @@
def __init__(self, icon, size):
super(IconWidget, self).__init__()
pixbuf = None
+ theme = gtk.icon_theme_get_default()
+ paths = theme.get_search_path()
+ missing_image = gtk.STOCK_MISSING_IMAGE
+ list_icons = theme.list_icons()
+ theme_name = gtk.settings_get_default().props.gtk_theme_name
+ icon_theme_name = gtk.settings_get_default().props.gtk_icon_theme_name
+ pixbuf = theme.load_icon(gtk.STOCK_MISSING_IMAGE, size, 0)
try:
if icon.startswith("/"):
pixbuf = gdk.pixbuf_new_from_file(icon)
@@ -35,7 +42,7 @@
pixbuf = theme.load_icon(icon, size, 0)
except:
theme = gtk.icon_theme_get_default()
- pixbuf = theme.load_icon(gtk.STOCK_MISSING_IMAGE, size, 0)
+ pixbuf = theme.load_icon(gtk.STOCK_MISSING_IMAGE + "a", size, 0)
width = pixbuf.get_width()
height = pixbuf.get_height()
But after that when I click on icon ibus, I have no abrt report.
The abrt report before changing icon.py is:
icon.py:38:__init__:GError: L'icne gtk-missing-image n'est pas prsente dans le
thme
Traceback (most recent call last):
File "/usr/share/ibus/ui/gtk/panel.py", line 494, in
__status_icon_activate_cb
item.set_image(_icon.IconWidget("gtk-info", size[0]))
File "/usr/share/ibus/ui/gtk/icon.py", line 38, in __init__
pixbuf = theme.load_icon(gtk.STOCK_MISSING_IMAGE, size, 0)
GError: L'icne gtk-missing-image n'est pas prsente dans le thme
Local variables in innermost frame:
theme: <gtk.IconTheme object at 0x2c7b910 (GtkIconTheme at 0x2d85d90)>
icon: 'gtk-info'
pixbuf: None
self: <IconWidget object at 0x2c7b8c0 (icon+IconWidget at 0x2d0bc40)>
size: 16
--
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the i18n-bugs
mailing list