Well, I managed to get the nautilus source code to compile and do some
more testing. It is a bit hard to figure out the code when you're not
familiar with it though, especially the way renaming in list view is
implemented (the developers even call it a "HACK!!!!" in a comment in
nautilus-view.c line 1758)

At first I thought that when pressing Escape while renaming, there might
be missing a call to a cleanup method. But unfortunately it was not that
simple. A call to cell_renderer_editing_canceled is done, which seems
like it should put back nautilus in a normal state.

I did find out that the pressing of Escape is not actually what triggers
the problem directly. If you select a file and press F2, then press
Escape (so without Ctrl-C), then press F2 again, that last F2 will also
trigger the bug. After that you can stop editing using Enter, and
Copy/Paste in nautilus wil still be broken. So pressing Ctrl-C while
renaming the file is not even necessary to trigger the bug.

Just like Francisco Franchetti says above, when the bug triggers I see:

Gtk-WARNING **: Inserting action group 'ClipboardActions' into UI
manager which already has a group with this name

And when I try to paste a file after that:

Gtk-CRITICAL **: gtk_widget_get_clipboard: assertion 'gtk_widget_has_screen 
(widget)' failed
Gtk-CRITICAL **: gtk_clipboard_request_text: assertion 'clipboard != NULL' 
failed

So yeah, that's all I have for now. Maybe I can look further later. If
someone has any tips on where to look and which lines of code to debug
I'd be glad to hear it.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to nautilus in Ubuntu.
https://bugs.launchpad.net/bugs/882307

Title:
  [list-view] After copying text from a rename entry, file copy menus
  items are broken

Status in Application menu module for GTK+:
  Incomplete
Status in Nautilus:
  Expired
Status in “nautilus” package in Ubuntu:
  Confirmed
Status in “nautilus” source package in Precise:
  Incomplete

Bug description:
  When renaming a file in nautilus, in list view, if you copy the highlighted 
part of the name, after this you're unable to copy/paste files
  This only occurs in list view

  Steps to reproduce:
  - Open Nautilus
  - Chose List View
  - Right click a file and chose Rename. Nautilus will highlight the file name.
  - Now Right click again on the highlighted part of the name and chose Copy.
  - Press Esc
  - Now try copying a file, you will be able to chose the option "Copy", but 
when you try to Paste, nothing happens.

  DistroRelease: Ubuntu 11.10
  Package: nautilus 1:3.2.1-0ubuntu1

To manage notifications about this bug go to:
https://bugs.launchpad.net/appmenu-gtk/+bug/882307/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to