From 5ba731c9ba3fa29a1b7c10f01c9d63519c7ebd47 Mon Sep 17 00:00:00 2001
From: Fran Rogers <fran@dumetella.net>
Date: Tue, 12 Oct 2010 13:56:17 -0400
Subject: [PATCH] Remove Share button from toolbar (#582)
---
ircactivity.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/ircactivity.py b/ircactivity.py
index 90c8510..29382e4 100644
a
|
b
|
class IRCActivity(activity.Activity): |
70 | 70 | |
71 | 71 | # TOOLBAR |
72 | 72 | toolbox = activity.ActivityToolbox(self) |
| 73 | |
| 74 | # Remove the Share button, since this activity isn't shareable |
| 75 | toolbar = toolbox.get_activity_toolbar() |
| 76 | toolbar.remove(toolbar.share) |
| 77 | |
73 | 78 | self.set_toolbox(toolbox) |
74 | 79 | self.show_all() |
75 | 80 | |