From dbf68af02fb50e2b1aea932f44ea8aa6e9b79197 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Sat, 22 May 2010 02:52:05 +0000 Subject: [PATCH] Fix shelf settings dialog always resetting the shelf style to 'alternate'. SVN revision: 49121 --- src/bin/e_int_shelf_config.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/e_int_shelf_config.c b/src/bin/e_int_shelf_config.c index 4304a2e99..19d77e6c4 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++; }