[gtk+/filechooserentry: 10/53] filechooserentry: The file system cannot be NULL
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/filechooserentry: 10/53] filechooserentry: The file system cannot be NULL
- Date: Mon, 7 Nov 2011 14:26:01 +0000 (UTC)
commit 24cda9cb334b1ebf60199c9274214ffb324b7ebe
Author: Benjamin Otte <otte redhat com>
Date: Thu Nov 3 15:13:17 2011 +0100
filechooserentry: The file system cannot be NULL
Remove code that checked this.
gtk/gtkfilechooserentry.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkfilechooserentry.c b/gtk/gtkfilechooserentry.c
index 6e74130..306ea66 100644
--- a/gtk/gtkfilechooserentry.c
+++ b/gtk/gtkfilechooserentry.c
@@ -1462,9 +1462,6 @@ out:
static RefreshStatus
start_loading_current_folder (GtkFileChooserEntry *chooser_entry)
{
- if (chooser_entry->file_system == NULL)
- return REFRESH_OK;
-
g_assert (chooser_entry->current_folder_file != NULL);
g_assert (chooser_entry->current_folder == NULL);
g_assert (chooser_entry->load_folder_cancellable == NULL);
@@ -1542,8 +1539,7 @@ refresh_current_folder_and_file_part (GtkFileChooserEntry *chooser_entry,
text = gtk_editable_get_chars (editable, 0, end_pos);
error = NULL;
- if (!chooser_entry->file_system ||
- !_gtk_file_system_parse (chooser_entry->file_system,
+ if (!_gtk_file_system_parse (chooser_entry->file_system,
chooser_entry->base_folder, text,
&folder_file, &file_part, &error))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]