[Bugs] #4830 Sugar UNSP: Icon from Gnome theme is displayed in a activity toolbar on F21
Sugar Labs Bugs
bugtracker-noreply at sugarlabs.org
Tue Mar 10 14:33:11 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 | Keywords:
Distribution/OS: Unspecified | Bug Status: Unconfirmed
---------------------------------------------+--------------------------
\
\
In Paint activity, the buttons with the icons 'rotate-object-left' and
'rotate-object-right' display the Adwaita icon instead of the icon
provided in the activity icons directory.
In src/sugar3/activity/activity.py we have:
{{{
@@ -290,7 +290,8 @@ 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)
}}}
I have tried replace append_search_path() by prepend_search_path() but
didn't have any effect.
{{{
from gi.repository import Gtk
icon_theme = Gtk.IconTheme.get_default()
icon_theme.get_search_path()
['/home/gonzalo/sugar-build/home/default/data/icons',
'/home/gonzalo/.icons',
'/home/gonzalo/sugar-build/build/out/install/share/icons',
'/usr/share/icons',
'/home/gonzalo/sugar-build/build/out/install/share/pixmaps',
'/usr/share/pixmaps']
pwd
Out[4]: u'/home/gonzalo/sugar-devel/honey/paint/paint-activity'
icon_theme.prepend_search_path('/home/gonzalo/sugar-devel/honey/paint
/paint-activity/icons')
icon_theme.get_search_path()
Out[6]:
['/home/gonzalo/sugar-devel/honey/paint/paint-activity/icons',
'/home/gonzalo/sugar-build/home/default/data/icons',
'/home/gonzalo/.icons',
'/home/gonzalo/sugar-build/build/out/install/share/icons',
'/usr/share/icons',
'/home/gonzalo/sugar-build/build/out/install/share/pixmaps',
'/usr/share/pixmaps']
info = icon_theme.lookup_icon('object-rotate-left',50, 0)
info.get_filename()
Out[8]: '/usr/share/icons/Adwaita/48x48/actions/object-rotate-left.png'
}}}
\
\
\
--
Ticket URL: <http://bugs.sugarlabs.org/ticket/4830>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list