summaryrefslogtreecommitdiff
path: root/glib/src/miscutils.ccg
diff options
context:
space:
mode:
authorKjell Ahlstedt <kjell.ahlstedt@bredband.net>2015-04-15 17:03:21 +0200
committerKjell Ahlstedt <kjell.ahlstedt@bredband.net>2015-04-15 17:03:21 +0200
commit6df99849edfc372edad25b102fe20458cc0b36cb (patch)
treeed0a4322b8f90ea129ffa18a4c365682cd3a97b0 /glib/src/miscutils.ccg
parent78d99915f1c2bd11d89c165188cb74c354db52c7 (diff)
downloadglibmm-6df99849edfc372edad25b102fe20458cc0b36cb.tar.gz
Add Glib::get_user_special_dir(UserDirectory)
* glib/src/miscutils.[hg|ccg]: Add _WRAP_ENUM(UserDirectory,...) and Glib::get_user_special_dir(UserDirectory directory). Deprecate get_user_special_dir(GUserDirectory directory). Bug #747311.
Diffstat (limited to 'glib/src/miscutils.ccg')
-rw-r--r--glib/src/miscutils.ccg7
1 files changed, 7 insertions, 0 deletions
diff --git a/glib/src/miscutils.ccg b/glib/src/miscutils.ccg
index d87936d9..3beabc9e 100644
--- a/glib/src/miscutils.ccg
+++ b/glib/src/miscutils.ccg
@@ -103,10 +103,17 @@ std::string get_current_dir()
return convert_return_gchar_ptr_to_stdstring(g_get_current_dir());
}
+#ifndef GLIBMM_DISABLE_DEPRECATED
std::string get_user_special_dir(GUserDirectory directory)
{
return convert_const_gchar_ptr_to_stdstring(g_get_user_special_dir(directory));
}
+#endif // GLIBMM_DISABLE_DEPRECATED
+
+std::string get_user_special_dir(UserDirectory directory)
+{
+ return convert_const_gchar_ptr_to_stdstring(g_get_user_special_dir((GUserDirectory)directory));
+}
std::string get_user_data_dir()
{