GNOME Bugzilla – Bug 362516
File extensions should not be selected by default
Last modified: 2008-02-12 17:57:51 UTC
The "Save as" dialog highlights the full name of the file, including the extension. It should not highlight the extension, like Nautilus does when you rename a file. For example, saving the GNOME logo from this bugzilla page should highlight "gnome-64" instead of "gnome-64.png".
Created attachment 75499 [details] [review] patch to implement the feature, also removes an unused variable it's ok to commit?
I tested the patch on gtk+ 2.12.1 and it's working great. Thank you Carlos!
*** Bug 515793 has been marked as a duplicate of this bug. ***
Ping. Can we get this in for 2.22?
(In reply to comment #1) > Created an attachment (id=75499) [edit] > patch to implement the feature, also removes an unused variable > > it's ok to commit? Thanks, Garnacho, looks fine to me!
2008-02-12 Matthias Clasen <mclasen@redhat.com> Skip exensions when selecting filenames in the save-as dialog. (#362516, Carlos Garnacho) * gtk/gtkfilechooserentry.h: * gtk/gtkfilechooserentry.c (_gtk_file_chooser_entry_select_filename): New function to skip the extension part when selecting a filename. (_gtk_file_chooser_entry_set_base_folder): Use it here. * gtk/gtkfilechooserdefault.c (gtk_file_chooser_entry_grab_focus): ...and here.
Thanks Matthias for committing, I was about to do it in a while :)