[Xfce4-commits] [xfce/xfdesktop] 03/03: Update thumbnail when file changes (Bug #14919)

noreply at xfce.org noreply at xfce.org
Mon Jan 13 00:17:35 CET 2020


This is an automated email from the git hooks/post-receive script.

a   n   d   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       x   f   c   e   -   4   .   1   4   
   in repository xfce/xfdesktop.

commit 258af55f62f068aa1d51481bc8c6449e29a78c88
Author: Andre Miranda <andreldm at xfce.org>
Date:   Wed Dec 25 17:59:09 2019 -0300

    Update thumbnail when file changes (Bug #14919)
    
    This is useful when a file is created via XDirectSave or is edited.
---
 src/xfdesktop-file-icon-manager.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/xfdesktop-file-icon-manager.c b/src/xfdesktop-file-icon-manager.c
index 1b0008d..8a00359 100644
--- a/src/xfdesktop-file-icon-manager.c
+++ b/src/xfdesktop-file-icon-manager.c
@@ -2752,6 +2752,9 @@ xfdesktop_file_icon_manager_file_changed(GFileMonitor     *monitor,
                     /* update the icon if the file still exists */
                     xfdesktop_file_icon_update_file_info(icon, file_info);
                     g_object_unref(file_info);
+
+                    /* update thumbnail */
+                    xfdesktop_file_icon_manager_queue_thumbnail (fmanager, icon);
                 } else {
                     /* Remove the icon as it doesn't seem to exist */
                     xfdesktop_file_icon_manager_remove_icon(fmanager, icon);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list