[Xfce4-commits] <xfdesktop:master> Remove unnecessary error message

Eric Koegel noreply at xfce.org
Mon Sep 2 08:46:02 CEST 2013


Updating branch refs/heads/master
         to a7940628f8adb3e61b180ecde995115c36c5d245 (commit)
       from 080643608212c5df29eb203e4e8e55602e8fd438 (commit)

commit a7940628f8adb3e61b180ecde995115c36c5d245
Author: Eric Koegel <eric.koegel at gmail.com>
Date:   Mon Sep 2 09:40:34 2013 +0300

    Remove unnecessary error message
    
    There are ways to trigger the move event while the icon doesn't
    exist without it being an error. Such as a web browser downloading
    a file to the desktop and using a .part file at the same time it
    has the non-part file in place.

 src/xfdesktop-file-icon-manager.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/xfdesktop-file-icon-manager.c b/src/xfdesktop-file-icon-manager.c
index 155be45..46342d5 100644
--- a/src/xfdesktop-file-icon-manager.c
+++ b/src/xfdesktop-file-icon-manager.c
@@ -2271,10 +2271,8 @@ xfdesktop_file_icon_manager_file_changed(GFileMonitor     *monitor,
             DBG("got a moved event");
 
             icon = g_hash_table_lookup(fmanager->priv->icons, file);
-            if(!icon) {
-                g_critical("G_FILE_MONITOR_EVENT_MOVED for an icon that doesn't exist");
+            if(!icon)
                 return;
-            }
 
             file_info = g_file_query_info(other_file, XFDESKTOP_FILE_INFO_NAMESPACE,
                                           G_FILE_QUERY_INFO_NONE, NULL, NULL);


More information about the Xfce4-commits mailing list