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 309964 - renaming a file in listview filename jumps out of window
renaming a file in listview filename jumps out of window
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: Views: List View
2.11.x
Other All
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
: 132785 313535 314394 320009 324454 334941 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-07-10 18:22 UTC by j^
Modified: 2006-03-18 12:37 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12


Attachments
Proposed patch against HEAD. (728 bytes, patch)
2005-07-11 12:30 UTC, Christian Neumair
none Details | Review
[PATCH] fm-list-view.c (499 bytes, patch)
2005-09-02 19:55 UTC, Camilo A Reyes
none Details | Review

Description j^ 2005-07-10 18:22:01 UTC
if you are in listview with some columns not in the visible 
area of the window(size,mimetype,date) and a too large 
column for the name(by default the name field is expanded 
to fit the longest name in folder). now you press F2 to
rename a file, the visible area is changed in a way that the 
next column is visible, but the begining of the area you 
are about to write to(name column) is not.

it would be better if the visible area would not change at
all.
Comment 1 Christian Neumair 2005-07-11 12:16:49 UTC
Thanks for your bug report! I can reproduce this issue.
Comment 2 Christian Neumair 2005-07-11 12:30:12 UTC
Created attachment 48949 [details] [review]
Proposed patch against HEAD. 

I've also submitted this patch to the nautilus mailing list [1] for review.

[1] http://mail.gnome.org/archives/nautilus-list/2005-July/msg00116.html
Comment 3 Alexander Larsson 2005-07-13 09:36:43 UTC
commited a different fix that doesn't set use_align.
Comment 4 Christian Neumair 2005-07-16 11:51:46 UTC
*** Bug 132785 has been marked as a duplicate of this bug. ***
Comment 5 Christian Neumair 2005-08-24 15:37:11 UTC
*** Bug 314394 has been marked as a duplicate of this bug. ***
Comment 6 Christian Neumair 2005-08-24 15:46:56 UTC
From bug 313535:

"If, in the list view, the "Name" column is wider than the nautilus window's area
for the list view, nautilus makes renaming a file/folder difficult by centering
the column in such a way that the editable text gets actually obscured".

Maybe we should rather use my original patch which has use_align set to TRUE. I
think this will do the job for this case as well.
Comment 7 Christian Neumair 2005-08-24 15:47:44 UTC
*** Bug 313535 has been marked as a duplicate of this bug. ***
Comment 8 Camilo A Reyes 2005-08-28 18:33:47 UTC
Why not just delete the entire line that uses use_align, that seems to work fine
on my system.
Comment 9 Christian Neumair 2005-08-28 20:46:11 UTC
Camilo: I suppose without this use_align, it wouldn't work correctly if the name
column is smaller than the window width.
Comment 10 Christian Neumair 2005-08-28 20:47:08 UTC
> Why not just delete the entire line that uses use_align, 

Do you mean we should remove the gtk_tree_view_scroll_to_cell call?
Comment 11 Camilo A Reyes 2005-09-02 19:33:23 UTC
Christian: Not sure how it wouldn't work correctly, I really don't see anything
wrong with not having the call at all. And yes it's the
gtk_tree_view_scroll_to_cell call that I'm talking about. The one that appears
on your patch to be precise, I should attach a patch but I don't know how to do
that, do you have any pointers on how I can post one?
Comment 12 Camilo A Reyes 2005-09-02 19:55:36 UTC
Created attachment 51741 [details] [review]
[PATCH] fm-list-view.c

fm-list-view.c code nautilus-2.10.1
Comment 13 Camilo A Reyes 2005-09-02 19:57:03 UTC
Comment on attachment 51741 [details] [review]
[PATCH] fm-list-view.c

Here is a patch of the changes that I speak of. I am using nautilus-2.10.1
code.
Comment 14 Alexander Larsson 2005-10-19 14:51:17 UTC
If you don't have the scroll_to_cell call then things break if the file to be
renamed is not visible. This happens for instance if the window is scrolled to
the right so that the name is not fully visible. I think this also happens in
the case where renames are triggered automatically, and the file isn't visible,
such as the initial rename when you create a new file.

Christian: Your original patch used set_align with both a row and a column
alignment, this means the list *always* scrolls, even if the name is already
visible, which is pretty weird.

Maybe we can use set_align and scroll only horizontally.
Comment 15 Alexander Larsson 2005-10-19 14:56:32 UTC
Yes, that worked better:

2005-10-19  Alexander Larsson  <alexl@redhat.com>

	* src/file-manager/fm-list-view.c (fm_list_view_start_renaming_file):
	Scroll into view correctly when renaming (#309964)
Comment 16 Sebastien Bacher 2005-11-13 17:08:29 UTC
*** Bug 320009 has been marked as a duplicate of this bug. ***
Comment 17 Sebastien Bacher 2005-12-25 15:30:26 UTC
*** Bug 324454 has been marked as a duplicate of this bug. ***
Comment 18 Fabio Bonelli 2006-03-18 12:37:10 UTC
*** Bug 334941 has been marked as a duplicate of this bug. ***