From bf19503d3658fb6f218ad5eba892735122ffe590 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 17 Mar 2011 04:10:23 +0000 Subject: Reappearence of greyed Share button (design feedback) --- diff --git a/helpactivity.py b/helpactivity.py index 4e1d3a6..4bb3a82 100755 --- a/helpactivity.py +++ b/helpactivity.py @@ -87,6 +87,10 @@ class HelpActivity(activity.Activity): navtoolbar._forward.show() toolitem.show() + # we do not have collaboration features + # make the share option insensitive + self.max_participants = 1 + separator = gtk.SeparatorToolItem() separator.props.draw = False separator.set_expand(True) diff --git a/mybutton.py b/mybutton.py index e5c461b..b1f1f84 100644 --- a/mybutton.py +++ b/mybutton.py @@ -42,7 +42,6 @@ class MyActivityToolbarButton(ToolbarButton): def __init__(self, activity, **kwargs): toolbar = ActivityToolbar(activity, orientation_left=True) - toolbar.share.hide() toolbar.stop.hide() toolbar.keep.hide() toolbar.title.unset_flags(gtk.CAN_FOCUS) -- cgit v0.9.1