add dlgs skip taskbar as well

This commit is contained in:
Zach Tibbitts 2007-02-21 18:33:47 +00:00
parent 8d5d70c23c
commit a029fa8f3f

View File

@ -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: