summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2010-11-23 21:54:01 +0000
committerSebastian Dransfeld <sd@tango.flipp.net>2010-11-23 21:54:01 +0000
commit263745797eab08d157d81fa15008a2982c10864f (patch)
tree514060421f8e3b99a0f1e830c88055e28e9a09f2 /legacy
parent620121501f1d7dc7817d7ff14577e1f76fa40ea1 (diff)
Listening for changes is private for desktop
SVN revision: 54911
Diffstat (limited to 'legacy')
-rw-r--r--legacy/efreet/src/lib/efreet_cache.c1
-rw-r--r--legacy/efreet/src/lib/efreet_desktop.c6
-rw-r--r--legacy/efreet/src/lib/efreet_private.h1
3 files changed, 5 insertions, 3 deletions
diff --git a/legacy/efreet/src/lib/efreet_cache.c b/legacy/efreet/src/lib/efreet_cache.c
index 86ff36e469..f750ffacb0 100644
--- a/legacy/efreet/src/lib/efreet_cache.c
+++ b/legacy/efreet/src/lib/efreet_cache.c
@@ -118,7 +118,6 @@ efreet_cache_init(void)
118 NULL); 118 NULL);
119 if (!cache_monitor) goto error; 119 if (!cache_monitor) goto error;
120 120
121 efreet_desktop_changes_listen();
122#if 0 121#if 0
123 efreet_icon_changes_listen(); 122 efreet_icon_changes_listen();
124#endif 123#endif
diff --git a/legacy/efreet/src/lib/efreet_desktop.c b/legacy/efreet/src/lib/efreet_desktop.c
index 5e156b0f57..68e31f136c 100644
--- a/legacy/efreet/src/lib/efreet_desktop.c
+++ b/legacy/efreet/src/lib/efreet_desktop.c
@@ -91,6 +91,7 @@ static Eina_Bool efreet_desktop_x_fields_save(const Eina_Hash *hash,
91 void *fdata); 91 void *fdata);
92static int efreet_desktop_environment_check(Efreet_Desktop *desktop); 92static int efreet_desktop_environment_check(Efreet_Desktop *desktop);
93 93
94static void efreet_desktop_changes_listen(void);
94static void efreet_desktop_changes_listen_recursive(const char *path); 95static void efreet_desktop_changes_listen_recursive(const char *path);
95static void efreet_desktop_changes_monitor_add(const char *path); 96static void efreet_desktop_changes_monitor_add(const char *path);
96static void efreet_desktop_changes_cb(void *data, Ecore_File_Monitor *em, 97static void efreet_desktop_changes_cb(void *data, Ecore_File_Monitor *em,
@@ -125,6 +126,7 @@ efreet_desktop_init(void)
125 EFREET_DESKTOP_TYPE_DIRECTORY = efreet_desktop_type_add("Directory", NULL, 126 EFREET_DESKTOP_TYPE_DIRECTORY = efreet_desktop_type_add("Directory", NULL,
126 NULL, NULL); 127 NULL, NULL);
127 128
129 efreet_desktop_changes_listen();
128 return 1; 130 return 1;
129} 131}
130 132
@@ -800,7 +802,7 @@ error:
800 return 0; 802 return 0;
801} 803}
802 804
803void 805static void
804efreet_desktop_changes_listen(void) 806efreet_desktop_changes_listen(void)
805{ 807{
806 int dirsfd = -1; 808 int dirsfd = -1;
@@ -808,6 +810,8 @@ efreet_desktop_changes_listen(void)
808 char *path; 810 char *path;
809 struct stat st; 811 struct stat st;
810 812
813 if (!efreet_cache_update) return;
814
811 change_monitors = eina_hash_string_superfast_new(EINA_FREE_CB(ecore_file_monitor_del)); 815 change_monitors = eina_hash_string_superfast_new(EINA_FREE_CB(ecore_file_monitor_del));
812 if (!change_monitors) return; 816 if (!change_monitors) return;
813 817
diff --git a/legacy/efreet/src/lib/efreet_private.h b/legacy/efreet/src/lib/efreet_private.h
index c8cf910795..1c8d6620df 100644
--- a/legacy/efreet/src/lib/efreet_private.h
+++ b/legacy/efreet/src/lib/efreet_private.h
@@ -209,7 +209,6 @@ EAPI const char *efreet_desktop_util_cache_file(void);
209EAPI const char *efreet_desktop_cache_file(void); 209EAPI const char *efreet_desktop_cache_file(void);
210EAPI const char *efreet_desktop_cache_dirs(void); 210EAPI const char *efreet_desktop_cache_dirs(void);
211int efreet_desktop_write_cache_dirs_file(void); 211int efreet_desktop_write_cache_dirs_file(void);
212void efreet_desktop_changes_listen(void);
213 212
214void efreet_cache_desktop_update(void); 213void efreet_cache_desktop_update(void);
215#ifdef ICON_CACHE 214#ifdef ICON_CACHE