gnome-commander r2110 - in trunk: . src
- From: epiotr svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-commander r2110 - in trunk: . src
- Date: Thu, 25 Sep 2008 06:19:50 +0000 (UTC)
Author: epiotr
Date: Thu Sep 25 06:19:50 2008
New Revision: 2110
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=2110&view=rev
Log:
inline gnome_cmd_dir_ref() and gnome_cmd_dir_unref()
Modified:
trunk/ChangeLog
trunk/src/gnome-cmd-dir.cc
trunk/src/gnome-cmd-dir.h
Modified: trunk/src/gnome-cmd-dir.cc
==============================================================================
--- trunk/src/gnome-cmd-dir.cc (original)
+++ trunk/src/gnome-cmd-dir.cc Thu Sep 25 06:19:50 2008
@@ -403,22 +403,6 @@
}
-void gnome_cmd_dir_ref (GnomeCmdDir *dir)
-{
- g_return_if_fail (GNOME_CMD_IS_DIR (dir));
-
- gnome_cmd_file_ref (GNOME_CMD_FILE (dir));
-}
-
-
-void gnome_cmd_dir_unref (GnomeCmdDir *dir)
-{
- g_return_if_fail (GNOME_CMD_IS_DIR (dir));
-
- gnome_cmd_file_unref (GNOME_CMD_FILE (dir));
-}
-
-
GnomeVFSResult gnome_cmd_dir_get_files (GnomeCmdDir *dir, GList **files)
{
g_return_val_if_fail (GNOME_CMD_IS_DIR (dir), GNOME_VFS_ERROR_BAD_PARAMETERS);
Modified: trunk/src/gnome-cmd-dir.h
==============================================================================
--- trunk/src/gnome-cmd-dir.h (original)
+++ trunk/src/gnome-cmd-dir.h Thu Sep 25 06:19:50 2008
@@ -111,8 +111,17 @@
return gnome_cmd_file_new (info, dir);
}
-void gnome_cmd_dir_ref (GnomeCmdDir *dir);
-void gnome_cmd_dir_unref (GnomeCmdDir *dir);
+inline void gnome_cmd_dir_ref (GnomeCmdDir *dir)
+{
+ g_return_if_fail (GNOME_CMD_IS_DIR (dir));
+ gnome_cmd_file_ref (GNOME_CMD_FILE (dir));
+}
+
+inline void gnome_cmd_dir_unref (GnomeCmdDir *dir)
+{
+ g_return_if_fail (GNOME_CMD_IS_DIR (dir));
+ gnome_cmd_file_unref (GNOME_CMD_FILE (dir));
+}
GnomeVFSResult gnome_cmd_dir_get_files (GnomeCmdDir *dir, GList **files);
void gnome_cmd_dir_relist_files (GnomeCmdDir *dir, gboolean visprog);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]