[gtk+/multiroot-filechooser-2-20] Don't pass volumes as if they were a GFile
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/multiroot-filechooser-2-20] Don't pass volumes as if they were a GFile
- Date: Thu, 14 Oct 2010 17:26:16 +0000 (UTC)
commit 5863a1a27262edc48ce685a1d9e06cdd6c12ad21
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 9286afb..aebbe92 100644
--- a/gtk/gtkfilechooserdefault.c
+++ b/gtk/gtkfilechooserdefault.c
@@ -5584,10 +5584,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]