automatically paste clipboard contents on 'add url'

This commit is contained in:
Marcos Pinto 2007-06-21 07:49:15 +00:00
parent b5fa8939e4
commit 77fca5a1c0
1 changed files with 3 additions and 0 deletions

View File

@ -1086,6 +1086,9 @@ class DelugeGTK:
entry = gtk.Entry()
dlg.vbox.pack_start(label)
dlg.vbox.pack_start(entry)
clip = gtk.clipboard_get(selection='PRIMARY')
text = clip.wait_for_text()
entry.set_text(text)
dlg.show_all()
result = dlg.run()
url = entry.get_text()