[gtk+] filechooserentry: force_reload is never TRUE
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] filechooserentry: force_reload is never TRUE
- Date: Fri, 16 Dec 2011 19:11:39 +0000 (UTC)
commit b6f6e33801552b309d19849573349373bf525c7b
Author: Benjamin Otte <otte redhat com>
Date: Fri Oct 28 13:35:04 2011 -0700
filechooserentry: force_reload is never TRUE
.. so remove it.
gtk/gtkfilechooserentry.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkfilechooserentry.c b/gtk/gtkfilechooserentry.c
index cfa6529..bd6c3c5 100644
--- a/gtk/gtkfilechooserentry.c
+++ b/gtk/gtkfilechooserentry.c
@@ -1486,15 +1486,13 @@ start_loading_current_folder (GtkFileChooserEntry *chooser_entry)
static RefreshStatus
reload_current_folder (GtkFileChooserEntry *chooser_entry,
- GFile *folder_file,
- gboolean force_reload)
+ GFile *folder_file)
{
g_assert (folder_file != NULL);
if (chooser_entry->current_folder_file
&& g_file_equal (folder_file, chooser_entry->current_folder_file)
- && chooser_entry->load_folder_cancellable
- && !force_reload)
+ && chooser_entry->load_folder_cancellable)
return REFRESH_OK;
if (chooser_entry->current_folder_file)
@@ -1590,7 +1588,7 @@ refresh_current_folder_and_file_part (GtkFileChooserEntry *chooser_entry,
if (result == REFRESH_OK)
{
- result = reload_current_folder (chooser_entry, folder_file, file_part_pos == -1);
+ result = reload_current_folder (chooser_entry, folder_file);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]