diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-07-08 21:37:47 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-07-11 00:15:42 -0500 |
commit | 995e87322c01d22290e122a88d8d1ff3091ce1a3 (patch) | |
tree | ebebcf176ecfe0e4666971a94bde771b1cc1c24c /gtk/gtkfilechooserwidget.c | |
parent | 0c7237f15ee8271502e99b062cc4780b499d8397 (diff) | |
download | gtk+-995e87322c01d22290e122a88d8d1ff3091ce1a3.tar.gz |
file chooser: Remove some obsoltete code
We no longer have editable rows in the list, so no need to
check for them anymore.
Diffstat (limited to 'gtk/gtkfilechooserwidget.c')
-rw-r--r-- | gtk/gtkfilechooserwidget.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c index 644a97a1d0..3e0445c10a 100644 --- a/gtk/gtkfilechooserwidget.c +++ b/gtk/gtkfilechooserwidget.c @@ -5704,8 +5704,6 @@ get_files_foreach (GtkTreeModel *model, GFile *file; file = _gtk_file_system_model_get_file (fs_model, iter); - if (!file) - return; /* We are on the editable row */ if (!info->file_from_entry || !g_file_equal (info->file_from_entry, file)) info->result = g_slist_prepend (info->result, g_object_ref (file)); @@ -7596,23 +7594,6 @@ list_selection_changed (GtkTreeSelection *selection, if (gtk_tree_view_get_model (GTK_TREE_VIEW (priv->browse_files_tree_view)) == NULL) return; - /* See if we are in the new folder editable row for Save mode */ - if (priv->operation_mode == OPERATION_MODE_BROWSE && - priv->action == GTK_FILE_CHOOSER_ACTION_SAVE) - { - GFileInfo *info; - gboolean had_selection; - - info = get_selected_file_info_from_file_list (impl, &had_selection); - if (!had_selection) - goto out; /* normal processing */ - - if (!info) - return; /* We are on the editable row for New Folder */ - } - - out: - if (priv->location_entry) update_chooser_entry (impl); |