mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-22 17:29:19 +00:00
add dlgs skip taskbar as well
This commit is contained in:
parent
8d5d70c23c
commit
a029fa8f3f
@ -43,7 +43,8 @@ def show_file_open_dialog(parent=None):
|
||||
chooser.add_filter(f1)
|
||||
|
||||
chooser.set_icon_from_file(dcommon.get_pixmap("deluge32.png"))
|
||||
|
||||
chooser.set_property("skip-taskbar-hint", True)
|
||||
|
||||
response = chooser.run()
|
||||
if response == gtk.RESPONSE_OK:
|
||||
result = chooser.get_filename()
|
||||
@ -56,6 +57,7 @@ def show_directory_chooser_dialog(parent=None):
|
||||
chooser = gtk.FileChooserDialog(_("Choose a download directory"), parent, gtk.FILE_CHOOSER_ACTION_SELECT_FOLDER,
|
||||
buttons=(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_OK, gtk.RESPONSE_OK))
|
||||
chooser.set_icon_from_file(dcommon.get_pixmap("deluge32.png"))
|
||||
chooser.set_property("skip-taskbar-hint", True)
|
||||
if chooser.run() == gtk.RESPONSE_OK:
|
||||
result = chooser.get_filename()
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user