[gtk+/multiroot-filechooser] Don't pass volumes as if they were a GFile



commit 56ed4f574b9e68cd3f117351438f8d311bd9904e
Author: Federico Mena Quintero <federico novell com>
Date:   Thu Oct 14 12:32:49 2010 -0500

    Don't pass volumes as if they were a GFile
    
    Signed-off-by: Federico Mena Quintero <federico novell com>

 gtk/gtkfilechooserdefault.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c
index 67bdb55..21133da 100644
--- a/gtk/gtkfilechooserdefault.c
+++ b/gtk/gtkfilechooserdefault.c
@@ -5437,10 +5437,11 @@ set_root_uris (GtkFileChooserDefault *impl,
     {
       if (list_selected != NULL)
         {
-          shortcuts_find_folder (impl, list_selected);
-
-          if (shortcut_type == SHORTCUT_TYPE_FILE)
-            g_object_unref (list_selected);
+	  if (shortcut_type == SHORTCUT_TYPE_FILE)
+	    {
+	      shortcuts_find_folder (impl, list_selected);
+	      g_object_unref (list_selected);
+	    }
         }
       else
         {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]