[gtk+/gtk-2.90] Make _gtk_file_system_model_remove_file() static
- From: Christian Dywan <cdywan src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2.90] Make _gtk_file_system_model_remove_file() static
- Date: Fri, 16 Oct 2009 14:00:46 +0000 (UTC)
commit d88ca80d2ca2e195aa62868aee66ef6557fc40e1
Author: Federico Mena Quintero <federico novell com>
Date: Mon Aug 31 15:11:44 2009 -0500
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>
gtk/gtkfilesystemmodel.c | 13 ++++++++-----
gtk/gtkfilesystemmodel.h | 2 --
2 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkfilesystemmodel.c b/gtk/gtkfilesystemmodel.c
index 0b76c63..07f3685 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;
diff --git a/gtk/gtkfilesystemmodel.h b/gtk/gtkfilesystemmodel.h
index 895a395..0c89d61 100644
--- a/gtk/gtkfilesystemmodel.h
+++ b/gtk/gtkfilesystemmodel.h
@@ -69,8 +69,6 @@ const GValue * _gtk_file_system_model_get_value (GtkFileSystemModel
void _gtk_file_system_model_add_and_query_file (GtkFileSystemModel *model,
GFile *file,
const char *attributes);
-void _gtk_file_system_model_remove_file (GtkFileSystemModel *model,
- GFile *file);
void _gtk_file_system_model_update_file (GtkFileSystemModel *model,
GFile *file,
GFileInfo *info,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]