[vinagre] Added vinagre_dirs_get_user_data_dir()
- From: Jonh Wendell <jwendell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vinagre] Added vinagre_dirs_get_user_data_dir()
- Date: Tue, 8 Jun 2010 19:24:03 +0000 (UTC)
commit 2634d1a97ad00a31accac381c2823b20674eaade
Author: Jonh Wendell <jwendell gnome org>
Date: Tue Jun 8 15:50:19 2010 -0300
Added vinagre_dirs_get_user_data_dir()
vinagre/vinagre-dirs.c | 8 ++++++++
vinagre/vinagre-dirs.h | 1 +
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/vinagre/vinagre-dirs.c b/vinagre/vinagre-dirs.c
index d86d20c..b9b75f2 100644
--- a/vinagre/vinagre-dirs.c
+++ b/vinagre/vinagre-dirs.c
@@ -50,6 +50,14 @@ vinagre_dirs_get_user_plugins_dir (void)
}
gchar *
+vinagre_dirs_get_user_data_dir ()
+{
+ return g_build_filename (g_get_user_data_dir (),
+ "vinagre",
+ NULL);
+}
+
+gchar *
vinagre_dirs_get_user_accels_file ()
{
gchar *accels, *config_dir;
diff --git a/vinagre/vinagre-dirs.h b/vinagre/vinagre-dirs.h
index 6dca13e..4443dd7 100644
--- a/vinagre/vinagre-dirs.h
+++ b/vinagre/vinagre-dirs.h
@@ -26,6 +26,7 @@
G_BEGIN_DECLS
gchar *vinagre_dirs_get_user_config_dir (void);
+gchar *vinagre_dirs_get_user_data_dir (void);
gchar *vinagre_dirs_get_user_cache_dir (void);
gchar *vinagre_dirs_get_user_plugins_dir (void);
gchar *vinagre_dirs_get_user_accels_file (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]