diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-04-09 21:03:13 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-04-10 15:41:56 -0400 |
commit | d6543bc00941b878cd8ea108e59cdafea65ca417 (patch) | |
tree | c54c55cbef0614b6b1c39756b9b9b6a3e9b3818d /gtk/gtkfilesystemmodel.c | |
parent | c41ab1473048ad83247f0882ca430ef395512259 (diff) | |
download | gtk+-d6543bc00941b878cd8ea108e59cdafea65ca417.tar.gz |
Remove no longer needed in-tree editingwip/csoriano/gtkplacesidebar_bookmarks
Diffstat (limited to 'gtk/gtkfilesystemmodel.c')
-rw-r--r-- | gtk/gtkfilesystemmodel.c | 49 |
1 files changed, 1 insertions, 48 deletions
diff --git a/gtk/gtkfilesystemmodel.c b/gtk/gtkfilesystemmodel.c index 621f4a7f15..a92be1f5b1 100644 --- a/gtk/gtkfilesystemmodel.c +++ b/gtk/gtkfilesystemmodel.c @@ -1655,10 +1655,7 @@ _gtk_file_system_model_iter_is_filtered_out (GtkFileSystemModel *model, * is owned by @model and must not be modified or freed. * If you want to keep the information for later use, * you must take a reference, since the #GFileInfo-struct may be - * freed on later changes to the file system. If you have - * called _gtk_file_system_model_add_editable() and the @iter - * corresponds to the row that this function returned, the - * return value will be NULL. + * freed on later changes to the file system. **/ GFileInfo * _gtk_file_system_model_get_info (GtkFileSystemModel *model, @@ -2132,47 +2129,3 @@ _gtk_file_system_model_add_and_query_file (GtkFileSystemModel *model, gtk_file_system_model_query_done, model); } - -/** - * _gtk_file_system_model_add_editable: - * @model: a #GtkFileSystemModel - * @iter: Location to return the iter corresponding to the editable row - * - * Adds an “empty” row at the beginning of the model. This does not refer to - * any file, but is a temporary placeholder for a file name that the user will - * type when a corresponding cell is made editable. When your code is done - * using this temporary row, call _gtk_file_system_model_remove_editable(). - **/ -void -_gtk_file_system_model_add_editable (GtkFileSystemModel *model, GtkTreeIter *iter) -{ - g_return_if_fail (GTK_IS_FILE_SYSTEM_MODEL (model)); - g_return_if_fail (!get_node (model, 0)->visible); - - node_set_visible_and_filtered_out (model, 0, TRUE, FALSE); - ITER_INIT_FROM_INDEX (model, iter, 0); - - /* we don't want file system changes to affect the model while - * editing is in place - */ - freeze_updates (model); -} - -/** - * _gtk_file_system_model_remove_editable: - * @model: a #GtkFileSystemModel - * - * Removes the “empty” row at the beginning of the model that was - * created with _gtk_file_system_model_add_editable(). You should call - * this function when your code is finished editing this temporary row. - **/ -void -_gtk_file_system_model_remove_editable (GtkFileSystemModel *model) -{ - g_return_if_fail (GTK_IS_FILE_SYSTEM_MODEL (model)); - g_return_if_fail (get_node (model, 0)->visible); - - thaw_updates (model); - - node_set_visible_and_filtered_out (model, 0, FALSE, FALSE); -} |