[Bugs] #3835 sugar-toolkit-gtk3 UNSP: Icon/EventIcon: badge is not drawn at the correct position

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Wed Aug 29 03:49:46 EDT 2012


#3835: Icon/EventIcon: badge is not drawn at the correct position
------------------------------------------+---------------------------------
    Reporter:  erikos                     |          Owner:  erikos    
        Type:  defect                     |         Status:  new       
    Priority:  Unspecified by Maintainer  |      Milestone:  0.98      
   Component:  sugar-toolkit-gtk3         |        Version:  0.97.x    
    Severity:  Critical                   |       Keywords:  shell-port
Distribution:  Fedora                     |   Status_field:  New       
------------------------------------------+---------------------------------

Comment(by erikos):

 Test patch for the toolkit-gtk3:

 diff --git a/src/sugar3/graphics/icon.py b/src/sugar3/graphics/icon.py
 index c10273e..956ea44 100644
 {{{
 --- a/src/sugar3/graphics/icon.py
 +++ b/src/sugar3/graphics/icon.py
 @@ -304,7 +304,7 @@ class _IconBuffer(object):

          if self.badge_name:
              context.restore()
 -            context.translate(badge_info.attach_x, badge_info.attach_y)
 +            context.translate(badge_info.attach_x + 10,
 badge_info.attach_y + 10)
              self._draw_badge(context, badge_info.size, sensitive, widget)

          self._surface_cache[cache_key] = surface
 }}}

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/3835#comment:1>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list