glibmm r770 - in trunk: . gio/src
- From: murrayc svn gnome org
- To: svn-commits-list gnome org
- Subject: glibmm r770 - in trunk: . gio/src
- Date: Sat, 3 Jan 2009 00:23:28 +0000 (UTC)
Author: murrayc
Date: Sat Jan 3 00:23:28 2009
New Revision: 770
URL: http://svn.gnome.org/viewvc/glibmm?rev=770&view=rev
Log:
2009-01-03 Murray Cumming <murrayc murrayc com>
* gio/src/file.ccg: Added implementation of the
make_directory_with_parents() method overload that takes no parameter.
Bug #566003 (Philip Belemezov).
Modified:
trunk/ChangeLog
trunk/gio/src/file.ccg
Modified: trunk/gio/src/file.ccg
==============================================================================
--- trunk/gio/src/file.ccg (original)
+++ trunk/gio/src/file.ccg Sat Jan 3 00:23:28 2009
@@ -1901,6 +1901,25 @@
}
#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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]