/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to search.py

  • Committer: Jelmer Vernooij
  • Date: 2008-07-18 15:19:21 UTC
  • mfrom: (533.11.1 trunk)
  • Revision ID: jelmer@samba.org-20080718151921-lzf632mlqhups3io
Merge asking the user whether to create an index.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
class SearchDialog(gtk.Dialog):
28
28
    """Search dialog."""
29
 
    def __init__(self, branch, parent=None):
 
29
    def __init__(self, index, parent=None):
30
30
        gtk.Dialog.__init__(self, title="Search Revisions",
31
31
                                  parent=parent,
32
32
                                  flags=gtk.DIALOG_MODAL,
34
34
                                           gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL))
35
35
    
36
36
        # Get arguments
37
 
        self.branch = branch
38
 
 
39
 
        self.index = _mod_index.open_index_url(branch.base)
 
37
        self.index = index
40
38
 
41
39
        self.searchbar = gtk.HBox()
42
40
        self.searchentry = gtk.Entry()