~fmos/zim/features

« back to all changes in this revision

Viewing changes to zim/gui/searchdialog.py

  • Committer: Fabian Moser
  • Date: 2011-01-08 18:26:21 UTC
  • mfrom: (297.1.32 pyzim-trunk)
  • Revision ID: e-mail@fabianmoser.at-20110108182621-5k8ymh4s9b7lnfkf
Merged main branch and updated sidepane registration for the tag tree plugin

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
import logging
7
7
 
8
8
from zim.notebook import Path
9
 
from zim.gui.widgets import Dialog, BrowserTreeView
 
9
from zim.gui.widgets import Dialog, BrowserTreeView, InputEntry
10
10
from zim.search import *
11
11
 
12
12
 
22
22
                hbox = gtk.HBox(spacing=5)
23
23
                self.vbox.pack_start(hbox, False)
24
24
                hbox.pack_start(gtk.Label(_('Search')+': '), False) # T: input label
25
 
                self.query_entry = gtk.Entry()
 
25
                self.query_entry = InputEntry()
26
26
                hbox.add(self.query_entry)
27
27
                button = gtk.Button(stock=gtk.STOCK_FIND)
28
28
                hbox.pack_start(button, False)
59
59
 
60
60
 
61
61
                def search(*a):
62
 
                        string = unicode(self.query_entry.get_text(), 'utf-8')
 
62
                        string = self.query_entry.get_text()
63
63
                        if self.namespacecheckbox.get_active():
64
64
                                string = 'Namespace: "%s" ' % self.ui.page.name + string
65
65
                        #~ print '!! QUERY: ' + string