[gnome-commander] inline void gnome_cmd_file_list_ref() and void gnome_cmd_file_list_unref()
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] inline void gnome_cmd_file_list_ref() and void gnome_cmd_file_list_unref()
- Date: Fri, 19 Nov 2010 21:07:11 +0000 (UTC)
commit a2a120fd9a656054c1a330d8cc55635c59eb0fa0
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Fri Nov 19 22:01:18 2010 +0100
inline void gnome_cmd_file_list_ref() and void gnome_cmd_file_list_unref()
src/gnome-cmd-file.cc | 40 ----------------------------------------
src/gnome-cmd-file.h | 13 ++++++++++---
2 files changed, 10 insertions(+), 43 deletions(-)
---
diff --git a/src/gnome-cmd-file.cc b/src/gnome-cmd-file.cc
index 07c8a39..dd2a0df 100644
--- a/src/gnome-cmd-file.cc
+++ b/src/gnome-cmd-file.cc
@@ -891,46 +891,6 @@ void gnome_cmd_file_list_free (GList *files)
}
-/******************************************************************************
-*
-* Function: gnome_cmd_file_list_ref
-*
-* Purpose: Refs all files in the passed list
-*
-* Params:
-*
-* Returns:
-*
-* Statuses:
-*
-******************************************************************************/
-
-void gnome_cmd_file_list_ref (GList *files)
-{
- g_list_foreach (files, (GFunc) gnome_cmd_file_ref, NULL);
-}
-
-
-/******************************************************************************
-*
-* Function: gnome_cmd_file_list_unref
-*
-* Purpose: Unrefs all files in the passed list
-*
-* Params:
-*
-* Returns:
-*
-* Statuses:
-*
-******************************************************************************/
-
-void gnome_cmd_file_list_unref (GList *files)
-{
- g_list_foreach (files, (GFunc) gnome_cmd_file_unref, NULL);
-}
-
-
GnomeCmdDir *GnomeCmdFile::get_parent_dir()
{
return ::get_parent_dir (this);
diff --git a/src/gnome-cmd-file.h b/src/gnome-cmd-file.h
index 1162fd9..2c9c3b8 100644
--- a/src/gnome-cmd-file.h
+++ b/src/gnome-cmd-file.h
@@ -144,11 +144,18 @@ void gnome_cmd_file_show_cap_cut (GnomeCmdFile *f);
void gnome_cmd_file_show_cap_copy (GnomeCmdFile *f);
void gnome_cmd_file_show_cap_paste (GnomeCmdFile *f);
-// FIXME: These names suck when we have a class called GnomeCmdFileList...
GList *gnome_cmd_file_list_copy (GList *files);
void gnome_cmd_file_list_free (GList *files);
-void gnome_cmd_file_list_ref (GList *files);
-void gnome_cmd_file_list_unref (GList *files);
+
+inline void gnome_cmd_file_list_ref (GList *files)
+{
+ g_list_foreach (files, (GFunc) gnome_cmd_file_ref, NULL);
+}
+
+inline void gnome_cmd_file_list_unref (GList *files)
+{
+ g_list_foreach (files, (GFunc) gnome_cmd_file_unref, NULL);
+}
inline const gchar *GnomeCmdFile::get_mime_type()
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]