gnome-commander r2265 - in trunk: . src
- From: epiotr svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-commander r2265 - in trunk: . src
- Date: Tue, 4 Nov 2008 20:52:15 +0000 (UTC)
Author: epiotr
Date: Tue Nov 4 20:52:15 2008
New Revision: 2265
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=2265&view=rev
Log:
gnome_cmd_file_ref() returns the file now
Modified:
trunk/ChangeLog
trunk/src/gnome-cmd-file.cc
trunk/src/gnome-cmd-file.h
Modified: trunk/src/gnome-cmd-file.cc
==============================================================================
--- trunk/src/gnome-cmd-file.cc (original)
+++ trunk/src/gnome-cmd-file.cc Tue Nov 4 20:52:15 2008
@@ -224,9 +224,9 @@
}
-void gnome_cmd_file_ref (GnomeCmdFile *file)
+GnomeCmdFile *gnome_cmd_file_ref (GnomeCmdFile *file)
{
- g_return_if_fail (file != NULL);
+ g_return_val_if_fail (file != NULL, NULL);
file->priv->ref_cnt++;
@@ -236,6 +236,8 @@
char c = GNOME_CMD_IS_DIR (file) ? 'd' : 'f';
DEBUG (c, "refing: 0x%p %s to %d\n", file, file->info->name, file->priv->ref_cnt);
+
+ return file;
}
Modified: trunk/src/gnome-cmd-file.h
==============================================================================
--- trunk/src/gnome-cmd-file.h (original)
+++ trunk/src/gnome-cmd-file.h Tue Nov 4 20:52:15 2008
@@ -62,7 +62,7 @@
void gnome_cmd_file_invalidate_metadata (GnomeCmdFile *f);
-void gnome_cmd_file_ref (GnomeCmdFile *f);
+GnomeCmdFile *gnome_cmd_file_ref (GnomeCmdFile *f);
void gnome_cmd_file_unref (GnomeCmdFile *f);
GnomeVFSResult gnome_cmd_file_chmod (GnomeCmdFile *f, GnomeVFSFilePermissions perm);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]