summaryrefslogtreecommitdiff
path: root/meta/recipes-gnome/gnome/gnome-settings-daemon/mojito-cleanup.patch
diff options
context:
space:
mode:
authorSaul Wold <Saul.Wold@intel.com>2010-11-22 13:57:13 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2010-11-22 13:57:13 +0000
commitcfe12efb5ec9586dab6961f141d52b103bd8b1d1 (patch)
tree7108e22aa7ddf6cfc2f1b6c6b73a811187706ecb /meta/recipes-gnome/gnome/gnome-settings-daemon/mojito-cleanup.patch
parent762fd6b7b3b22d7a8cb80ef9e9ba62e7ef21af3e (diff)
downloadopenembedded-core-cfe12efb5ec9586dab6961f141d52b103bd8b1d1.tar.gz
openembedded-core-cfe12efb5ec9586dab6961f141d52b103bd8b1d1.tar.bz2
openembedded-core-cfe12efb5ec9586dab6961f141d52b103bd8b1d1.tar.xz
openembedded-core-cfe12efb5ec9586dab6961f141d52b103bd8b1d1.zip
Meta: Recipe Reogranization
This is the next stage of recipe reorganization, in this stage many recipes where moved to a new meta-demoapps layer since this is more appropriate for demo usage then the core. Additional some recipes were moved to meta-extras to indicate they may be depercated at a future time. A number of recipes were modified since dependencies need to be corrected. Signed-off-by: Saul Wold <Saul.Wold@intel.com>
Diffstat (limited to 'meta/recipes-gnome/gnome/gnome-settings-daemon/mojito-cleanup.patch')
-rw-r--r--meta/recipes-gnome/gnome/gnome-settings-daemon/mojito-cleanup.patch74
1 files changed, 0 insertions, 74 deletions
diff --git a/meta/recipes-gnome/gnome/gnome-settings-daemon/mojito-cleanup.patch b/meta/recipes-gnome/gnome/gnome-settings-daemon/mojito-cleanup.patch
deleted file mode 100644
index 1aff2d6d6..000000000
--- a/meta/recipes-gnome/gnome/gnome-settings-daemon/mojito-cleanup.patch
+++ /dev/null
@@ -1,74 +0,0 @@
-diff --git a/plugins/housekeeping/gsd-housekeeping-manager.c b/plugins/housekeeping/gsd-housekeeping-manager.c
-index f84cfad..e8f474a 100644
---- a/plugins/housekeeping/gsd-housekeeping-manager.c
-+++ b/plugins/housekeeping/gsd-housekeeping-manager.c
-@@ -85,9 +85,13 @@ thumb_data_free (gpointer data)
- }
- }
-
-+typedef enum {
-+ HASH,
-+ HASH_PNG
-+} FileType;
-
- static GList *
--read_dir_for_purge (const char *path, GList *files)
-+read_dir_for_purge (const char *path, GList *files, FileType type)
- {
- GFile *read_path;
- GFileEnumerator *enum_dir;
-@@ -105,9 +109,20 @@ read_dir_for_purge (const char *path, GList *files)
- GFileInfo *info;
- while ((info = g_file_enumerator_next_file (enum_dir, NULL, NULL)) != NULL) {
- const char *name;
-+ gboolean prune = FALSE;
-+
- name = g_file_info_get_name (info);
-
-- if (strlen (name) == 36 && strcmp (name + 32, ".png") == 0) {
-+ switch (type) {
-+ case HASH:
-+ prune = (strlen (name) == 36);
-+ break;
-+ case HASH_PNG:
-+ prune = (strlen (name) == 36 && strcmp (name + 32, ".png") == 0);
-+ break;
-+ }
-+
-+ if (prune) {
- ThumbData *td;
- GFile *entry;
- char *entry_path;
-@@ -197,14 +212,14 @@ purge_thumbnail_cache (void)
- ".thumbnails",
- "normal",
- NULL);
-- files = read_dir_for_purge (path, NULL);
-+ files = read_dir_for_purge (path, NULL, HASH_PNG);
- g_free (path);
-
- path = g_build_filename (g_get_home_dir (),
- ".thumbnails",
- "large",
- NULL);
-- files = read_dir_for_purge (path, files);
-+ files = read_dir_for_purge (path, files, HASH_PNG);
- g_free (path);
-
- path = g_build_filename (g_get_home_dir (),
-@@ -212,7 +227,14 @@ purge_thumbnail_cache (void)
- "fail",
- "gnome-thumbnail-factory",
- NULL);
-- files = read_dir_for_purge (path, files);
-+ files = read_dir_for_purge (path, files, HASH_PNG);
-+ g_free (path);
-+
-+ path = g_build_filename (g_get_user_cache_dir (),
-+ "mojito",
-+ "thumbnails",
-+ NULL);
-+ files = read_dir_for_purge (path, files, HASH);
- g_free (path);
-
- g_get_current_time (&current_time);