GNOME Bugzilla – Bug 312346
Proposed filename "Screenshot.png" should not have ".png" selected, like nautilus when renaming
Last modified: 2006-02-14 14:32:14 UTC
When launching gnome-screenshot, it pops up a dialog with a GtkEntry where I can enter the filename to save to. In my locale, this is "Screenshot.png" by default (or "Screenshot-[window title].png"). However, the entire "Screenshot.png" is selected, whereas if I want to rename it (as is often the case), then only "Screenshot" and not the ".png" should be selected. (i.e., feature request is to copy how nautilus behaves when you try to rename a file using F2)
Created attachment 50128 [details] [review] An implementation of the feature request The (small) patch could probably be 1 or 2 lines shorter if it used the function eel_filename_get_rename_region, although this would pull in eel as a new dependency.
Seems reasonable. Confirming.
fixed in HEAD. 2006-02-14 Emmanuele Bassi <ebassi@cvs.gnome.org> * screenshot-dialog.c (screenshot_dialog_new): select just the name of the file but not its extension (closes bug #312346).