summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiavash Safi <siavash@siavashs.org>2009-04-27 13:50:08 +0430
committerSiavash Safi <siavash@siavashs.org>2009-04-27 13:50:08 +0430
commitb0633854b9d762ae0fb6e7740e87f917cec9e5b4 (patch)
tree5466f099f8af5661fa0b3f321cc3d6a12e4f44b7
parent93f6a4a128c4147cf24679eeaa4635ad85335f54 (diff)
downloadglibmm-b0633854b9d762ae0fb6e7740e87f917cec9e5b4.tar.gz
Added the missing defenitions for Gio::File::make_directory_with_parents()
Updated ChangeLog which was forgotten in the previous commit
-rw-r--r--ChangeLog5
-rw-r--r--gio/src/file.ccg19
2 files changed, 24 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 42271fca..65cca95b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-04-27 Siavash Safi <siavash@siavashs.org>
+
+ * gio/src/file.ccg: Added the missing defenitions for
+ Gio::File::make_directory_with_parents()
+
2009-03-26 Daniel Elstner <danielk@openismus.com>
* configure.ac: Rename from configure.in.
diff --git a/gio/src/file.ccg b/gio/src/file.ccg
index c1b08358..344c7492 100644
--- a/gio/src/file.ccg
+++ b/gio/src/file.ccg
@@ -1901,6 +1901,25 @@ bool File::make_directory(std::auto_ptr<Glib::Error>& error)
}
#ifdef GLIBMM_EXCEPTIONS_ENABLED
+bool File::make_directory_with_parents()
+#else
+bool File::make_directory_with_parents(std::auto_ptr<Glib::Error>& error)
+#endif //GLIBMM_EXCEPTIONS_ENABLED
+{
+ GError* gerror = 0;
+ const bool retvalue = g_file_make_directory_with_parents(gobj(), NULL, &(gerror));
+#ifdef GLIBMM_EXCEPTIONS_ENABLED
+ if(gerror)
+ ::Glib::Error::throw_exception(gerror);
+#else
+ if(gerror)
+ error = ::Glib::Error::throw_exception(gerror);
+#endif //GLIBMM_EXCEPTIONS_ENABLED
+
+ return retvalue;
+}
+
+#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool File::make_symbolic_link(const std::string& symlink_value)
#else
bool File::make_symbolic_link(const std::string& symlink_value, std::auto_ptr<Glib::Error>& error)