GNOME Bugzilla – Bug 729366
Changes to folder name are not shown when creating new folder from file chooser if folder list has been scrolled prior to hitting 'Create Folder'
Last modified: 2015-03-02 21:26:36 UTC
To reproduce: 1. Open a torrent file with Transmission 2. In the file chooser dialog that opens to choose where to save the file, click the "create new folder" button 3. Type a name for the new folder - note that this works, but the UI does not indicate it in any way, you are 'typing blind' Trying to reproduce in gedit doesn't seem to work, but it seems to be 100% reproducible in Transmission. Not sure what the difference is. Running gtk 3.13.1, but I saw this with 3.12 also.
do you have a link to a torrent file that I can use ?
http://torrent.fedoraproject.org/ ? :D
Huh, except, one I try from there doesn't trigger the bug. But I'm *sure* I've seen it regularly. Maybe it is to do with the torrent name / contents, sigh...I'll poke a bit more.
well crap, now I can't reproduce it at all. maybe it got fixed in 3.13.1 and I had a transmission with 3.12 open before. I'll close for now and re-open if I find a way to reproduce...
thanks, adam
Aha! So thanks to an idea of mclasen's, I found the reproducer. The difference is whether the folder list has been scrolled or not before you hit "Create Folder". If the folder list has not been scrolled, then the entry provisionally named "New Folder" will be created at the top, and you will see changes to the name "New Folder" as you type them. If the folder list has been scrolled, the entry provisionally named "New Folder" will be created at the top, and GTK+ knows to automatically 'jump' back to the top of the folder list so you can see the changes to the name as you type them...but the changes don't actually show up. Something about this particular case causes the "New Folder" entry to misbehave and not show changes as they're typed. I'll see if I can attach a couple of screencasts to illustrate.
Created attachment 275691 [details] screencast illustrating the issue Here's a screencast illustrating the issue. I'm just saving a file in gedit. First, I create a new folder without scrolling the folder list; you can see the name of the new folder change as I type, 'test test test'. I cancel out by hitting Esc, then scroll the folder list and hit 'create folder' again. Then I type 'test test test' again, but you'll see the displayed folder name does not change. Then I hit enter and you'll see that the folder is indeed created with the name 'test test test'.
This has either re-appeared or is still valid in gtk3-3.14.1-2.fc21.x86_64 (I don't recall whether it got fixed and just came back, or has been broken the whole time). Just saw it again.
Created attachment 298341 [details] [review] gtkfilechooser: scroll prior to adding the 'new folder' row Yes I can reproduce with gtk 3.15.4 , this patch fixes it by scrolling to the beginning of tree view before adding the 'new folder' row.
Fixed differently in 209c5c37f323c5cb2b8ae98384e0fd61a2df60f7