GNOME Bugzilla – Bug 591969
make the FileChooser dialog handle Make FileChooser handle G_IO_ERROR_FILENAME_TOO_LONG errors
Last modified: 2013-05-26 04:25:03 UTC
+++ This bug was initially created as a clone of Bug #548163 +++ This works correctly: 1. Click File → Save As... in an application, eg gedit or Evince. 2. Write a file name with an invalid character and press Save. Result: There will be an error message dialog and the FileChooser dialog will not be closed. This doesn't work correctly: 1. Click File → Save As... in an application, eg gedit or Evince. 2. Write a too long file name and press Save. Result: The FileChooser dialog will be closed, and the application will report the error to the user. Expected result: same as in the first scenario.
Please, typing long file names is tedious and error prone, don't make me type them again when I pass the length limit. Please make GTK+ handle correctly G_IO_ERROR_FILENAME_TOO_LONG errors.
This check should probably go in gtk_file_chooser_default_should_respond(), close to the code that checks for already-existing files. I'll gladly review a patch to do this.
You might want to advertise this somehow; I can barely write something in Python.
Created attachment 245103 [details] [review] Handle filename to long errors in Filechooser Here is a patch to display a dialog when filename is too long and keep the filechooser open
Created attachment 245107 [details] [review] Handle filename to long errors in Filechooser Fixes whitespace issues and removes unused param