summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-03-16 09:43:21 -0400
committerChris Michael <cp.michael@samsung.com>2015-03-16 09:43:21 -0400
commitdea2731db49833423cac97abbac7df2bc1206579 (patch)
treec457806ea4f73f61eed5e778c4de6b2aa08dc0c0
parent0ad06a33a893e2e2358c8a58754d2dbf8e3bf328 (diff)
wallpaper2: Update code for latest E changes
Summary: Recent changes in Enlightenment caused wallpaper2 to stop building. This patch updates the code to use the latest E functions and build again. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/e_int_config_wallpaper.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/e_int_config_wallpaper.c b/src/e_int_config_wallpaper.c
index 8015bb4..f694eca 100644
--- a/src/e_int_config_wallpaper.c
+++ b/src/e_int_config_wallpaper.c
@@ -1116,7 +1116,7 @@ wp_browser_new(E_Comp *comp)
1116 info = calloc(1, sizeof(Info)); 1116 info = calloc(1, sizeof(Info));
1117 if (!info) return NULL; 1117 if (!info) return NULL;
1118 1118
1119 zone = e_zone_current_get(comp); 1119 zone = e_zone_current_get();
1120 desk = e_desk_current_get(zone); 1120 desk = e_desk_current_get(zone);
1121 info->man_num = comp->num; 1121 info->man_num = comp->num;
1122 info->zone_num = zone->num; 1122 info->zone_num = zone->num;
@@ -1238,7 +1238,7 @@ wp_browser_new(E_Comp *comp)
1238 o2 = e_widget_radio_add(info->evas, D_("All Desktops"), 0, rg); 1238 o2 = e_widget_radio_add(info->evas, D_("All Desktops"), 0, rg);
1239 evas_object_smart_callback_add(o2, "changed", _wp_changed, info); 1239 evas_object_smart_callback_add(o2, "changed", _wp_changed, info);
1240 e_widget_list_object_append(o, o2, 1, 0, 0.5); 1240 e_widget_list_object_append(o, o2, 1, 0, 0.5);
1241 e_widget_disabled_set(o2, (e_util_comp_desk_count_get(comp) < 2)); 1241 e_widget_disabled_set(o2, (e_desks_count() < 2));
1242 evas_object_show(o2); 1242 evas_object_show(o2);
1243 1243
1244 o2 = e_widget_radio_add(info->evas, D_("This Desktop"), 1, rg); 1244 o2 = e_widget_radio_add(info->evas, D_("This Desktop"), 1, rg);
@@ -1249,8 +1249,7 @@ wp_browser_new(E_Comp *comp)
1249 o2 = e_widget_radio_add(info->evas, D_("This Screen"), 2, rg); 1249 o2 = e_widget_radio_add(info->evas, D_("This Screen"), 2, rg);
1250 evas_object_smart_callback_add(o2, "changed", _wp_changed, info); 1250 evas_object_smart_callback_add(o2, "changed", _wp_changed, info);
1251 e_widget_list_object_append(o, o2, 1, 0, 0.5); 1251 e_widget_list_object_append(o, o2, 1, 0, 0.5);
1252 if (!(e_util_comp_zone_number_get(0, 1) || 1252 if (!(e_comp_zone_number_get(1) || (e_comp_zone_number_get(0))))
1253 (e_util_comp_zone_number_get(1, 0))))
1254 e_widget_disabled_set(o2, EINA_TRUE); 1253 e_widget_disabled_set(o2, EINA_TRUE);
1255 evas_object_show(o2); 1254 evas_object_show(o2);
1256 1255