[Bugs] #4830 Sugar UNSP: Icon from Gnome theme is displayed in a activity toolbar on F21
Sugar Labs Bugs
bugtracker-noreply at sugarlabs.org
Thu Apr 9 08:40:09 EDT 2015
#4830: Icon from Gnome theme is displayed in a activity toolbar on F21
----------------------------------------+-------------------------------
Reporter: godiard | Owner:
Type: defect | Status: new
Priority: Unspecified by Maintainer | Milestone: Unspecified
Component: Sugar | Version: Unspecified
Severity: Unspecified | Resolution:
Keywords: | Distribution/OS: Unspecified
Bug Status: Unconfirmed |
----------------------------------------+-------------------------------
\
\
\
\
\
\
Comment (by godiard):
asking in GimpNet #gtk+, mclassen pointed to
http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-
latest.html
A suspecting paragraph is:
"Implementation Notes
The algorithm as described in this document works by always looking up
filenames in directories (a stat in unix terminology). A good
implementation is expected to read the directories once, and do all
lookups in memory using that information.
This caching can make it impossible for users to add icons without having
to restart applications. In order to handle this, any implementation that
does caching is required to look at the mtime of the toplevel icon
directories when doing a cache lookup, unless it already did so less than
5 seconds ago. This means that any icon editor or theme installation
program need only to change the mtime of the the toplevel directory where
it changed the theme to make sure that the new icons will eventually get
used."
Anyway, I have tried:
{{{
diff --git a/src/sugar3/activity/activity.py
b/src/sugar3/activity/activity.py
index d56c620..640c31c 100644
--- a/src/sugar3/activity/activity.py
+++ b/src/sugar3/activity/activity.py
@@ -290,7 +290,10 @@ class Activity(Window, Gtk.Container):
"""
# Stuff that needs to be done early
icons_path = os.path.join(get_bundle_path(), 'icons')
- Gtk.IconTheme.get_default().append_search_path(icons_path)
+ icon_theme = Gtk.IconTheme.get_default()
+ icon_theme.prepend_search_path(icons_path)
+ os.utime(icons_path, None)
+ icon_theme.rescan_if_needed()
}}}
but didn't solve the problem.
\
\
\
--
Ticket URL: <http://bugs.sugarlabs.org/ticket/4830#comment:2>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list