GNOME Bugzilla – Bug 352768
FileChooser.set_do_overwrite_confirmation() doesn't work
Last modified: 2006-08-25 10:41:11 UTC
I have the following code snippet: dialog = gtk.FileChooserDialog(title=_("Save As"),action=gtk.FILE_CHOOSER_ACTION_SAVE,buttons=(gtk.STOCK_CANCEL,gtk.RESPONSE_CANCEL,gtk.STOCK_SAVE,gtk.RESPONSE_OK)) dialog.set_default_response(gtk.RESPONSE_OK) dialog.set_current_folder(os.path.dirname(self.currimg_name)) dialog.set_current_name(os.path.basename(self.currimg_name)) dialog.set_do_overwrite_confirmation(True) response = dialog.run() If I specify a filename in a directory which already has that file, I expect a confirmation dialog to appear, but it does not. The response is initiated without any further user input. This is observed with pygtk 2.8.6 and gtk 2.10.2
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of 347883 ***