From: Christopher Michael Date: Sat, 22 May 2010 02:52:05 +0000 (+0000) Subject: Fix shelf settings dialog always resetting the shelf style to X-Git-Tag: submit/efl/20131021.015651~7384 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dbf68af02fb50e2b1aea932f44ea8aa6e9b79197;p=platform%2Fupstream%2Fenlightenment.git Fix shelf settings dialog always resetting the shelf style to 'alternate'. SVN revision: 49121 --- diff --git a/src/bin/e_int_shelf_config.c b/src/bin/e_int_shelf_config.c index 4304a2e..19d77e6 100644 --- a/src/bin/e_int_shelf_config.c +++ b/src/bin/e_int_shelf_config.c @@ -411,7 +411,7 @@ _fill_styles(E_Config_Dialog_Data *cfdata, Evas_Object *obj) Evas *evas; Eina_List *l, *styles; char *style; - int n, mw; + int mw, n = 0; evas = evas_object_evas_get(obj); evas_event_freeze(evas); @@ -432,8 +432,8 @@ _fill_styles(E_Config_Dialog_Data *cfdata, Evas_Object *obj) e_theme_edje_object_set(ow, "base/theme/shelf", buff); e_livethumb_thumb_set(thumb, ow); e_widget_ilist_append(obj, thumb, style, NULL, NULL, style); - if (!strcmp(cfdata->es->style, style)) - e_widget_ilist_selected_set(obj, n); + if (!strcmp(cfdata->style, style)) + e_widget_ilist_selected_set(obj, n); n++; }