Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 906649

Summary: =gui-libs/gtk-4.10.3 : Nautilus doesn't update view correctly when file is deleted.
Product: Gentoo Linux Reporter: Adrien D <email>
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal CC: crabbedhaloablution, email
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://gitlab.gnome.org/GNOME/nautilus/-/issues/2941
https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/5873
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: gtk-4.10.3-fix-nautilus-deletion.patch

Description Adrien D 2023-05-17 20:50:34 UTC
Nautilus doesn't update the view correctly when a file is deleted. This is caused by a bug in Gt4k and already fixed in the the upstream branch of "4.10".

I enclose the patch.
I tested applying the patch (i put the patch in /etc/portage/patches/gui-libs/gtk-4.10.3) + reemerge gui-libs/gtk-4.10.3 : slove the issue

Reproducible: Always
Comment 1 Adrien D 2023-05-17 20:51:06 UTC
Created attachment 861866 [details, diff]
gtk-4.10.3-fix-nautilus-deletion.patch
Comment 2 Adrien D 2023-05-18 17:15:26 UTC
I picked the patch from Fedora ( https://src.fedoraproject.org/rpms/gtk4/blob/f38/f/gtk-4.10.3-fix-nautilus-deletion.patch)  but i add here some informations : 
- Same bug illustrated on Gitlab of nautilus : https://gitlab.gnome.org/GNOME/nautilus/-/issues/2941
- The commit solves the issue on GTK package : https://gitlab.gnome.org/GNOME/gtk/-/commit/4f47683710bbb4b56c286c6ee6a5c394fcf2b755
Comment 3 crabbed halo ablution 2023-05-22 13:38:08 UTC
I confirm the bug and that the patch attached to this bug report works to fix the bug.
Comment 4 J. P. Kerr Catunda 2023-05-26 07:52:07 UTC
I can confirm the bug. It happens here in 5 different machines after updating 4.10.3.

The proposed patch fixes it.
Comment 5 Larry the Git Cow gentoo-dev 2023-05-26 08:36:24 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a91f6a60cc56438e3da74c9aee59b04998065426

commit a91f6a60cc56438e3da74c9aee59b04998065426
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-05-26 08:25:57 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-26 08:26:16 +0000

    gui-libs/gtk: backport fix for Nautilus delete (+ 2 other fixes)
    
    - Backport Nautilus delete pane fix
    - Backport crash fix
    - Backport rendering fix for X11
    
    Closes: https://bugs.gentoo.org/906649
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/gtk-4.10.3-black-screen-rendering.patch  |  37 ++++
 .../gtk/files/gtk-4.10.3-crash-css-color.patch     | 107 ++++++++++
 gui-libs/gtk/files/gtk-4.10.3-list-delete.patch    |  95 +++++++++
 gui-libs/gtk/gtk-4.10.3-r1.ebuild                  | 221 +++++++++++++++++++++
 4 files changed, 460 insertions(+)