[f-spot] update to latest gio#
- From: Stephane Delcroix <sdelcroix src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [f-spot] update to latest gio#
- Date: Mon, 14 Sep 2009 14:55:58 +0000 (UTC)
commit 5028ffbec6b30810b75fe5cfe7d725e737fae02f
Author: Stephane Delcroix <stephane delcroix org>
Date: Mon Sep 14 16:54:36 2009 +0200
update to latest gio#
lib/gio-sharp/gio/FileInfo.custom | 26 ++++++++++++++++++++++++++
lib/gio-sharp/gio/Gio.metadata | 2 ++
lib/gio-sharp/gio/Makefile.am | 3 ++-
3 files changed, 30 insertions(+), 1 deletions(-)
---
diff --git a/lib/gio-sharp/gio/FileInfo.custom b/lib/gio-sharp/gio/FileInfo.custom
new file mode 100644
index 0000000..ca1ed39
--- /dev/null
+++ b/lib/gio-sharp/gio/FileInfo.custom
@@ -0,0 +1,26 @@
+// FileInfo.custom - customizations to GLib.FileInfo
+//
+// Authors: Stephane Delcroix <stephane delcroix org>
+//
+// Copyright (c) 2009 Novell, Inc.
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of version 2 of the Lesser GNU General
+// Public License as published by the Free Software Foundation.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this program; if not, write to the
+// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+// Boston, MA 02111-1307, USA.
+
+static DateTime epoch = new DateTime (1970, 1, 1);
+public DateTime ModificationTime {
+ get {
+ return epoch.AddSeconds (GetAttributeULong ("time::modified"));
+ }
+}
diff --git a/lib/gio-sharp/gio/Gio.metadata b/lib/gio-sharp/gio/Gio.metadata
index b1c2bd5..81716fc 100644
--- a/lib/gio-sharp/gio/Gio.metadata
+++ b/lib/gio-sharp/gio/Gio.metadata
@@ -31,6 +31,8 @@
<attr path="/api/namespace/object[ cname='GFileInfo']/method[ cname='g_file_info_set_attribute_int32']" name="name">SetAttributeInt</attr>
<attr path="/api/namespace/object[ cname='GFileInfo']/method[ cname='g_file_info_get_attribute_uint32']" name="name">GetAttributeUInt</attr>
<attr path="/api/namespace/object[ cname='GFileInfo']/method[ cname='g_file_info_set_attribute_uint32']" name="name">SetAttributeUInt</attr>
+ <attr path="/api/namespace/object[ cname='GFileInfo']/method[ cname='g_file_info_set_modification_time']" name="hidden">1</attr>
+ <attr path="/api/namespace/object[ cname='GFileInfo']/method[ cname='g_file_info_get_modification_time']" name="hidden">1</attr>
<attr path="/api/namespace/object[ cname='GInputStream']/method[ cname='g_input_stream_read']/parameters/parameter[ name='buffer']" name="type">guchar*</attr>
<attr path="/api/namespace/object[ cname='GInputStream']/method[ cname='g_input_stream_read']/parameters/parameter[ name='buffer']" name="array">1</attr>
<attr path="/api/namespace/object[ cname='GInputStream']/method[ cname='g_input_stream_read_all']/parameters/parameter[ name='buffer']" name="type">guchar*</attr>
diff --git a/lib/gio-sharp/gio/Makefile.am b/lib/gio-sharp/gio/Makefile.am
index 7ebca2f..f4b1b5f 100644
--- a/lib/gio-sharp/gio/Makefile.am
+++ b/lib/gio-sharp/gio/Makefile.am
@@ -12,7 +12,8 @@ CUSTOMS = \
$(srcdir)/AppInfoAdapter.custom \
$(srcdir)/FileAdapter.custom \
$(srcdir)/File.custom \
- $(srcdir)/FileEnumerator.custom
+ $(srcdir)/FileEnumerator.custom \
+ $(srcdir)/FileInfo.custom
SNK = $(srcdir)/snk
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]