Remove redundant ctor argument from activity.ActivityToolbar()
This commit is contained in:
parent
7f2488e505
commit
0cf445eb0f
@ -96,7 +96,7 @@ class ActivityToolbar(gtk.Toolbar):
|
|||||||
All activities should have this toolbar. It is easiest to add it to your
|
All activities should have this toolbar. It is easiest to add it to your
|
||||||
Activity by using the ActivityToolbox.
|
Activity by using the ActivityToolbox.
|
||||||
"""
|
"""
|
||||||
def __init__(self, activity, hide_stop=False):
|
def __init__(self, activity):
|
||||||
gtk.Toolbar.__init__(self)
|
gtk.Toolbar.__init__(self)
|
||||||
|
|
||||||
self._activity = activity
|
self._activity = activity
|
||||||
@ -122,7 +122,6 @@ class ActivityToolbar(gtk.Toolbar):
|
|||||||
self.keep = keep_button(activity)
|
self.keep = keep_button(activity)
|
||||||
self.insert(self.keep, -1)
|
self.insert(self.keep, -1)
|
||||||
|
|
||||||
if not hide_stop:
|
|
||||||
self.stop = stop_button(activity)
|
self.stop = stop_button(activity)
|
||||||
self.insert(self.stop, -1)
|
self.insert(self.stop, -1)
|
||||||
|
|
||||||
@ -997,8 +996,9 @@ def show_object_in_journal(object_id):
|
|||||||
def toolbar(activity):
|
def toolbar(activity):
|
||||||
from jarabe.journal.misc import get_icon_name
|
from jarabe.journal.misc import get_icon_name
|
||||||
|
|
||||||
activity_button = ToolbarButton(
|
toolbar = ActivityToolbar(activity)
|
||||||
page=ActivityToolbar(activity, hide_stop=True))
|
toolbar.stop.hide()
|
||||||
|
activity_button = ToolbarButton(page=toolbar)
|
||||||
activity_button.show()
|
activity_button.show()
|
||||||
|
|
||||||
client = gconf.client_get_default()
|
client = gconf.client_get_default()
|
||||||
|
Loading…
Reference in New Issue
Block a user