summaryrefslogtreecommitdiff
path: root/legacy/efreet
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-06-14 07:28:23 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-06-14 07:28:23 +0000
commitf5d9c7bf2f7558b150b8f2510cec6cf2feb3bc87 (patch)
treee25ad073f69a457d4841ff4c7befbe370429b9b1 /legacy/efreet
parent1442bc1e746755acba63d5795fba405d3b44e778 (diff)
+efreet_dirs_reset()
SVN revision: 72104
Diffstat (limited to 'legacy/efreet')
-rw-r--r--legacy/efreet/ChangeLog4
-rw-r--r--legacy/efreet/NEWS1
-rw-r--r--legacy/efreet/src/lib/efreet_base.c16
-rw-r--r--legacy/efreet/src/lib/efreet_base.h7
4 files changed, 28 insertions, 0 deletions
diff --git a/legacy/efreet/ChangeLog b/legacy/efreet/ChangeLog
index e40b5e8659..08e577c5b1 100644
--- a/legacy/efreet/ChangeLog
+++ b/legacy/efreet/ChangeLog
@@ -123,3 +123,7 @@
1232012-06-07 Mike Blumenkrantz 1232012-06-07 Mike Blumenkrantz
124 124
125 * Support XDG_DESKTOP_DIR 125 * Support XDG_DESKTOP_DIR
126
1272012-06-14 Mike Blumenkrantz
128
129 * Added efreet_dirs_reset() to delete cached env variable information
diff --git a/legacy/efreet/NEWS b/legacy/efreet/NEWS
index 54caaca8f1..aae3349b12 100644
--- a/legacy/efreet/NEWS
+++ b/legacy/efreet/NEWS
@@ -11,6 +11,7 @@ Improvements:
11Additions: 11Additions:
12 12
13 * Support XDG_DESKTOP_DIR 13 * Support XDG_DESKTOP_DIR
14 * efreet_dirs_reset() for refreshing env vars after locale switches
14 15
15Efreet 1.2.0 16Efreet 1.2.0
16 17
diff --git a/legacy/efreet/src/lib/efreet_base.c b/legacy/efreet/src/lib/efreet_base.c
index 37c44fde2a..89b6adece7 100644
--- a/legacy/efreet/src/lib/efreet_base.c
+++ b/legacy/efreet/src/lib/efreet_base.c
@@ -187,6 +187,22 @@ efreet_hostname_get(void)
187 return hostname; 187 return hostname;
188} 188}
189 189
190EAPI void
191efreet_dirs_reset(void)
192{
193 const char *s;
194 eina_stringshare_replace(&hostname, NULL);
195 eina_stringshare_replace(&xdg_desktop_dir, NULL);
196 eina_stringshare_replace(&xdg_cache_home, NULL);
197 eina_stringshare_replace(&xdg_config_home, NULL);
198 eina_stringshare_replace(&xdg_data_home, NULL);
199 eina_stringshare_replace(&efreet_home_dir, NULL);
200 EINA_LIST_FREE(xdg_data_dirs, s)
201 eina_stringshare_del(s);
202 EINA_LIST_FREE(xdg_config_dirs, s)
203 eina_stringshare_del(s);
204}
205
190/** 206/**
191 * @internal 207 * @internal
192 * @param key The environemnt key to lookup 208 * @param key The environemnt key to lookup
diff --git a/legacy/efreet/src/lib/efreet_base.h b/legacy/efreet/src/lib/efreet_base.h
index 0eb3d52297..429ba2860c 100644
--- a/legacy/efreet/src/lib/efreet_base.h
+++ b/legacy/efreet/src/lib/efreet_base.h
@@ -66,6 +66,13 @@ EAPI const char *efreet_cache_home_get(void);
66EAPI const char *efreet_hostname_get(void); 66EAPI const char *efreet_hostname_get(void);
67 67
68/** 68/**
69 * @brief Resets all the stored env variables. This must be called whenever the
70 * locale is changed.
71 * @since 1.3
72 */
73EAPI void efreet_dirs_reset(void);
74
75/**
69 * Efreet_Event_Cache_Update 76 * Efreet_Event_Cache_Update
70 */ 77 */
71typedef struct _Efreet_Event_Cache_Update Efreet_Event_Cache_Update; 78typedef struct _Efreet_Event_Cache_Update Efreet_Event_Cache_Update;