summaryrefslogtreecommitdiff
path: root/gtk/gtkfilesystemmodel.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@novell.com>2009-08-31 15:11:44 -0500
committerBenjamin Otte <otte@gnome.org>2009-10-15 22:06:14 +0200
commit30016185be806b4ee2100e4b6973668606bddad8 (patch)
tree9262a28908bc6b90e6d96b7275bd536aac67a405 /gtk/gtkfilesystemmodel.c
parent2e0382cf02853f23d1f604c908f15629834b648e (diff)
downloadgtk+-30016185be806b4ee2100e4b6973668606bddad8.tar.gz
Make _gtk_file_system_model_remove_file() static
It was only used internally by the model. Signed-off-by: Federico Mena Quintero <federico@novell.com>
Diffstat (limited to 'gtk/gtkfilesystemmodel.c')
-rw-r--r--gtk/gtkfilesystemmodel.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/gtk/gtkfilesystemmodel.c b/gtk/gtkfilesystemmodel.c
index 0b76c6339f..07f3685bf0 100644
--- a/gtk/gtkfilesystemmodel.c
+++ b/gtk/gtkfilesystemmodel.c
@@ -114,6 +114,9 @@ struct _GtkFileSystemModelClass
static void add_file (GtkFileSystemModel *model,
GFile *file,
GFileInfo *info);
+static void remove_file (GtkFileSystemModel *model,
+ GFile *file);
+
/* iter setup:
* @user_data: the model
* @user_data2: GUINT_TO_POINTER of array index of current entry
@@ -1034,7 +1037,7 @@ gtk_file_system_model_monitor_change (GFileMonitor * monitor,
model);
break;
case G_FILE_MONITOR_EVENT_DELETED:
- _gtk_file_system_model_remove_file (model, file);
+ remove_file (model, file);
break;
case G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT:
/* FIXME: use freeze/thaw with this somehow? */
@@ -1565,7 +1568,7 @@ add_file (GtkFileSystemModel *model,
}
/**
- * _gtk_file_system_model_remove_file:
+ * remove_file:
* @model: the model
* @file: file to remove from the model. The file must have been
* added to the model previously
@@ -1573,9 +1576,9 @@ add_file (GtkFileSystemModel *model,
* Removes the given file from the model. If the file is not part of
* @model, this function does nothing.
**/
-void
-_gtk_file_system_model_remove_file (GtkFileSystemModel *model,
- GFile *file)
+static void
+remove_file (GtkFileSystemModel *model,
+ GFile *file)
{
FileModelNode *node;
guint id;