[Bugs] #4268 sugar-toolkit UNSP: Radiotoolbutton: When changing the palettes using touch the tooltip stays (was: When changing the palettes using touch the tooltip stays)

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Tue Nov 27 06:33:33 EST 2012


#4268: Radiotoolbutton: When changing the palettes using touch the tooltip stays
------------------------------------------+---------------------------------
    Reporter:  erikos                     |          Owner:  erikos     
        Type:  defect                     |         Status:  new        
    Priority:  Unspecified by Maintainer  |      Milestone:  0.98       
   Component:  sugar-toolkit              |        Version:  Unspecified
    Severity:  Unspecified                |       Keywords:             
Distribution:  Unspecified                |   Status_field:  Unconfirmed
------------------------------------------+---------------------------------
Changes (by erikos):

 * cc: walter, godiard (added)


Comment:

 We should do the same as with the ToolButton and hide the tooltip on
 click. As there are still GTK2 activities (e.g. TA), this should probably
 be backported to toolkit-gtk2 as well.

 {{{
 diff --git a/src/sugar/graphics/radiotoolbutton.py
 b/src/sugar/graphics/radiotoolbutton.py
 index b5fabf2..b882deb 100644
 --- a/src/sugar/graphics/radiotoolbutton.py
 +++ b/src/sugar/graphics/radiotoolbutton.py
 @@ -180,3 +180,7 @@ class RadioToolButton(gtk.RadioToolButton):
                                    allocation.width, allocation.height)

          gtk.RadioToolButton.do_expose_event(self, event)
 +
 +    def do_clicked(self):
 +        if self.palette:
 +            self.palette.popdown(True)
 }}}

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


More information about the Bugs mailing list