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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/882307

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

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to