mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-29 22:23:12 -06:00
Implement buffer search UI.
This commit is contained in:
parent
54a3805626
commit
f7325a8f36
@ -417,7 +417,14 @@ class Controller(object):
|
|||||||
search.timer.start()
|
search.timer.start()
|
||||||
dlg.Destroy()
|
dlg.Destroy()
|
||||||
|
|
||||||
def find(self, string=None):
|
def find(self, string=''):
|
||||||
|
dlg = dialogs.find.findDialog(string)
|
||||||
|
if dlg.get_response() == widgetUtils.OK and dlg.get("string") != "":
|
||||||
|
string = dlg.get("string")
|
||||||
|
#If we still have an empty string for some reason (I.E. user clicked cancel, etc), return here.
|
||||||
|
if string == '':
|
||||||
|
log.debug("Find canceled.")
|
||||||
|
return
|
||||||
page = self.get_current_buffer()
|
page = self.get_current_buffer()
|
||||||
if not hasattr(page.buffer, "list"):
|
if not hasattr(page.buffer, "list"):
|
||||||
output.speak(_(u"No session is currently in focus. Focus a session with the next or previous session shortcut."), True)
|
output.speak(_(u"No session is currently in focus. Focus a session with the next or previous session shortcut."), True)
|
||||||
|
@ -1 +1 @@
|
|||||||
import baseDialog, trends, configuration, lists, message, search, show_user, update_profile, urlList, userSelection, utils
|
import baseDialog, trends, configuration, lists, message, search, find, show_user, update_profile, urlList, userSelection, utils
|
||||||
|
Loading…
Reference in New Issue
Block a user