2011-04-18 20:55:01 -04:00
|
|
|
# Bryan Schumaker (4 / 18 / 2011)
|
|
|
|
|
|
|
|
import gtk
|
|
|
|
import ocarina
|
2011-04-24 08:55:33 -04:00
|
|
|
from ocarina import shortcuts
|
2011-05-22 09:25:47 -04:00
|
|
|
from libsaria import sources
|
2011-04-18 20:55:01 -04:00
|
|
|
|
|
|
|
entry = gtk.Entry()
|
|
|
|
entry.show()
|
|
|
|
|
2011-04-24 08:55:33 -04:00
|
|
|
has_focus = entry.is_focus
|
|
|
|
|
2011-04-18 20:55:01 -04:00
|
|
|
def do_filter(entry):
|
2011-05-22 09:25:47 -04:00
|
|
|
sources.filter(entry.get_text())
|
2011-04-18 20:55:01 -04:00
|
|
|
entry.connect("changed", do_filter)
|
2011-04-24 08:55:33 -04:00
|
|
|
|
|
|
|
shortcuts.register_shortcut("slash", entry.grab_focus)
|