[Xfce4-commits] <xfdesktop:danielm/port-to-gio> Check proxy connection before use it.

Daniel Morales noreply at xfce.org
Wed Feb 24 13:38:01 CET 2010


Updating branch refs/heads/danielm/port-to-gio
         to 37f058c45e528656b737e259ca91c2f4f88dcca3 (commit)
       from f7002f6a055f742714b0e68840ac594d06c868ac (commit)

commit 37f058c45e528656b737e259ca91c2f4f88dcca3
Author: Daniel Morales <daniel at daniel.com.uy>
Date:   Wed Feb 24 10:20:08 2010 -0200

    Check proxy connection before use it.

 src/xfdesktop-regular-file-icon.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/xfdesktop-regular-file-icon.c b/src/xfdesktop-regular-file-icon.c
index 5767bf2..2b0bd9a 100644
--- a/src/xfdesktop-regular-file-icon.c
+++ b/src/xfdesktop-regular-file-icon.c
@@ -369,6 +369,10 @@ xfdesktop_regular_file_icon_do_drop_dest(XfdesktopIcon *icon,
         gchar      *dest_uri;
         gchar      *name;
 
+        thunar_proxy = xfdesktop_file_utils_peek_thunar_proxy();
+        if(!thunar_proxy)
+            return FALSE;
+
         if(xfdesktop_file_utils_is_root(src_file_icon))
             return FALSE;
         
@@ -383,8 +387,6 @@ xfdesktop_regular_file_icon_do_drop_dest(XfdesktopIcon *icon,
         if(!dest_path)
             return FALSE;
         
-        thunar_proxy = xfdesktop_file_utils_peek_thunar_proxy();
-        
         /* only one file, but null terminated */
         filenames = g_new(gchar *, 2);
         filenames[0] = g_file_get_uri(file_icon->gfile);
@@ -515,6 +517,8 @@ xfdesktop_regular_file_icon_delete_file(XfdesktopFileIcon *icon)
     g_return_val_if_fail(G_IS_FILE_INFO(file_icon->info), FALSE);
 
     thunar_proxy = xfdesktop_file_utils_peek_thunar_proxy();
+    if(!thunar_proxy)
+        return FALSE;
 
     /* only one file, but null terminated */
     filenames = g_new(gchar *, 2);



More information about the Xfce4-commits mailing list