/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-17 12:30:39 UTC
  • mto: This revision was merged to the branch mainline in revision 553.
  • Revision ID: jelmer@samba.org-20080717123039-rnpqwdwtwp2uz8br
Ask user whether to index if there is no index present yet.

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()