Ticket #4065: 0001-ActivityButton-set-the-toggle_palette-option-to-True.patch

File 0001-ActivityButton-set-the-toggle_palette-option-to-True.patch, 1010 bytes (added by erikos, 11 years ago)

ActivityButton: set the toggle_palette invoker property to true

  • src/sugar3/activity/widgets.py

    From 3e918fd7b9dbc3fe6458443137723bf9dfc63dbe Mon Sep 17 00:00:00 2001
    From: Simon Schampijer <simon@laptop.org>
    Date: Mon, 22 Oct 2012 18:45:02 +0200
    Subject: [PATCH toolkit-gtk3] ActivityButton: set the toggle_palette option
     to True
    
    Setting this option will popup the Palette on left click or tap
    and popdown the Palette if it is up. This functionality has been
    added with SL #4065.
    
    Signed-off-by: Simon Schampijer <simon@laptop.org>
    ---
     src/sugar3/activity/widgets.py | 1 +
     1 file changed, 1 insertion(+)
    
    diff --git a/src/sugar3/activity/widgets.py b/src/sugar3/activity/widgets.py
    index c4015ce..9f6b3db 100644
    a b class ActivityButton(ToolButton): 
    6060        self.set_icon_widget(icon)
    6161        icon.show()
    6262
     63        self.palette_invoker.props.toggle_palette = True
    6364        self.props.tooltip = activity.metadata['title']
    6465        activity.metadata.connect('updated', self.__jobject_updated_cb)
    6566