From 6e7f6fbe973a6a13b3f954053373f5edf71d5e3b Mon Sep 17 00:00:00 2001 From: Gary Martin Date: Mon, 07 Sep 2009 02:08:42 +0000 Subject: Migrated search ToolbarButton content into the Edit ToolbarButton (feedback from Eben). --- (limited to 'toolbar.py') diff --git a/toolbar.py b/toolbar.py index 5928d59..b5a467e 100644 --- a/toolbar.py +++ b/toolbar.py @@ -42,10 +42,12 @@ import widgets logger = logging.getLogger('write-activity') class EditToolbar(gtk.Toolbar): - def __init__(self, pc): + def __init__(self, pc, toolbar_box): gtk.Toolbar.__init__(self) + self._abiword_canvas = pc.abiword_canvas + copy = CopyButton() copy.props.accelerator = 'C' copy.connect('clicked', lambda button: pc.abiword_canvas.copy()) @@ -83,15 +85,9 @@ class EditToolbar(gtk.Toolbar): pc.abiword_canvas.connect('selection-cleared', lambda abi, b: copy.set_sensitive(False)) - -class SearchToolbar(gtk.Toolbar): - - def __init__(self, abiword_canvas, text_toolbar): - - gtk.Toolbar.__init__(self) - - self._abiword_canvas = abiword_canvas - self._text_toolbar = text_toolbar + separator = gtk.SeparatorToolItem() + self.insert(separator, -1) + separator.show() # setup the search options self._search_entry = iconentry.IconEntry() -- cgit v0.9.1