[f-spot] Automatically dispose FileInfo objects.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot] Automatically dispose FileInfo objects.
- Date: Sun, 13 Jun 2010 13:05:15 +0000 (UTC)
commit f7d3241102dc9cfe367082d8c303fc803100f2b8
Author: Ruben Vermeersch <ruben savanne be>
Date: Sun Jun 13 14:43:45 2010 +0200
Automatically dispose FileInfo objects.
lib/gio-sharp/gio/FileInfo.custom | 28 ++++++++++++++++++++++++++++
lib/gio-sharp/gio/Makefile.am | 3 ++-
2 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..9fdeb3e
--- /dev/null
+++ b/lib/gio-sharp/gio/FileInfo.custom
@@ -0,0 +1,28 @@
+// FileInfo.custom - customizations to GLib.FileInfo
+//
+// Authors: Ruben Vermeersch <ruben savanne be>
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+~FileInfo ()
+{
+ Dispose ();
+}
diff --git a/lib/gio-sharp/gio/Makefile.am b/lib/gio-sharp/gio/Makefile.am
index 41ff22a..19ecb46 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]