After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 352768 - FileChooser.set_do_overwrite_confirmation() doesn't work
FileChooser.set_do_overwrite_confirmation() doesn't work
Status: RESOLVED DUPLICATE of bug 347883
Product: pygtk
Classification: Bindings
Component: gtk
2.8.x
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2006-08-25 01:22 UTC by Scott Horowitz
Modified: 2006-08-25 10:41 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Scott Horowitz 2006-08-25 01:22:12 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
Comment 1 Gustavo Carneiro 2006-08-25 10:41:11 UTC
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 ***