From 3a20f54bbe551d9241583bab86b9b04a96b4d47b Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 14 Dec 2008 00:32:32 +0000 Subject: [PATCH] Avoid a warning in tests. Patch by Christian Dywan * gtk/gktfilechooserdefault.c (set_local_only): Avoid a warning in tests. Patch by Christian Dywan svn path=/trunk/; revision=21892 --- ChangeLog | 7 +++++++ gtk/gtkfilechooserdefault.c | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ef9e5106cd..81631deaaa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-12-13 Matthias Clasen + + Bug 556233 – local-only causes G_IS_FILE warning + + * gtk/gktfilechooserdefault.c (set_local_only): Avoid a warning + in tests. Patch by Christian Dywan + 2008-12-13 Matthias Clasen Bug 563158 – CellRendererProgress pulsing and progressing rows can diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index f5a3880778..9dbb56b8be 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -5340,7 +5340,8 @@ set_local_only (GtkFileChooserDefault *impl, shortcuts_add_bookmarks (impl); } - if (local_only && !g_file_is_native (impl->current_folder)) + if (local_only && impl->current_folder && + !g_file_is_native (impl->current_folder)) { /* If we are pointing to a non-local folder, make an effort to change * back to a local folder, but it's really up to the app to not cause