From b6a9cf2ecac77332a412a79ba8da438f759499e7 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Wed, 18 Nov 2009 05:10:27 +0000 Subject: [PATCH] When searching for icons, request the size that the user has set in config. SVN revision: 43772 --- src/modules/illume-home/e_mod_main.c | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/modules/illume-home/e_mod_main.c b/src/modules/illume-home/e_mod_main.c index 6f0d26591..0cb77baec 100644 --- a/src/modules/illume-home/e_mod_main.c +++ b/src/modules/illume-home/e_mod_main.c @@ -601,7 +601,8 @@ _il_home_desks_populate(void) continue; if ((desktop) && (desktop->x)) { - icon = eina_hash_find(desktop->x, "X-Application-Screenshot"); + icon = eina_hash_find(desktop->x, + "X-Application-Screenshot"); if (icon) icon = strdup(icon); } if ((!icon) && (subentry->icon)) @@ -610,7 +611,8 @@ _il_home_desks_populate(void) icon = strdup(subentry->icon); else icon = efreet_icon_path_find(e_config->icon_theme, - subentry->icon, 512); + subentry->icon, + il_home_cfg->icon_size); } if (subentry->name) label = strdup(subentry->name); if (desktop) @@ -619,27 +621,26 @@ _il_home_desks_populate(void) label = strdup(desktop->generic_name); if ((!icon) && (desktop->icon)) icon = efreet_icon_path_find(e_config->icon_theme, - desktop->icon, 512); + desktop->icon, + il_home_cfg->icon_size); } if (!icon) icon = efreet_icon_path_find(e_config->icon_theme, - "hires.jpg", 512); + "hires.jpg", + il_home_cfg->icon_size); if (!icon) icon = strdup("DEFAULT"); if (!label) label = strdup("???"); snprintf(buff, sizeof(buff), "%s / %s", plabel, label); desks = eina_list_append(desks, desktop); efreet_desktop_ref(desktop); - /* launcher mode */ + if (desktop) { - if (desktop) - { - e_user_dir_snprintf(buff, sizeof(buff), - "appshadow/%04x.desktop", num); - ecore_file_symlink(desktop->orig_path, buff); - } - num++; + e_user_dir_snprintf(buff, sizeof(buff), + "appshadow/%04x.desktop", num); + ecore_file_symlink(desktop->orig_path, buff); } + num++; if (label) free(label); if (icon) free(icon); }