[gtk+/gtk-2-24] filechooserentry: force_reload is never TRUE
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-24] filechooserentry: force_reload is never TRUE
- Date: Thu, 10 Mar 2016 21:28:02 +0000 (UTC)
commit 0e6d18eaef3ed60d23bcc0796e9f31f31293f97f
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 9b47dcf..0384661 100644
--- a/gtk/gtkfilechooserentry.c
+++ b/gtk/gtkfilechooserentry.c
@@ -1478,15 +1478,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)
@@ -1582,7 +1580,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]