mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-02 06:36:15 +00:00
add dlgs skip taskbar as well
This commit is contained in:
parent
8d5d70c23c
commit
a029fa8f3f
@ -43,6 +43,7 @@ def show_file_open_dialog(parent=None):
|
|||||||
chooser.add_filter(f1)
|
chooser.add_filter(f1)
|
||||||
|
|
||||||
chooser.set_icon_from_file(dcommon.get_pixmap("deluge32.png"))
|
chooser.set_icon_from_file(dcommon.get_pixmap("deluge32.png"))
|
||||||
|
chooser.set_property("skip-taskbar-hint", True)
|
||||||
|
|
||||||
response = chooser.run()
|
response = chooser.run()
|
||||||
if response == gtk.RESPONSE_OK:
|
if response == gtk.RESPONSE_OK:
|
||||||
@ -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,
|
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))
|
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_icon_from_file(dcommon.get_pixmap("deluge32.png"))
|
||||||
|
chooser.set_property("skip-taskbar-hint", True)
|
||||||
if chooser.run() == gtk.RESPONSE_OK:
|
if chooser.run() == gtk.RESPONSE_OK:
|
||||||
result = chooser.get_filename()
|
result = chooser.get_filename()
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user