From: Christopher Michael Date: Sat, 14 Jan 2006 01:39:58 +0000 (+0000) Subject: Disable Ok/Apply if the selected theme matches the current one X-Git-Tag: submit/efl/20131021.015651~14170 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=361f7f2eb87866c1c07eddc37eb9c38b9385a5b2;p=platform%2Fupstream%2Fenlightenment.git Disable Ok/Apply if the selected theme matches the current one SVN revision: 19760 --- diff --git a/src/bin/e_int_config_theme.c b/src/bin/e_int_config_theme.c index 0c5ee99..5d18c1e 100644 --- a/src/bin/e_int_config_theme.c +++ b/src/bin/e_int_config_theme.c @@ -109,6 +109,7 @@ _e_config_theme_cb_standard(void *data) if (cfdata->current_theme) { tmp = ecore_file_get_file(d->file); + tmp = ecore_file_strip_ext(tmp); if (!strcmp(tmp, cfdata->current_theme)) { e_dialog_button_disable_num_set(d->cfd->dia, 0, 1); @@ -117,7 +118,6 @@ _e_config_theme_cb_standard(void *data) } } - /**--GUI--**/ static Evas_Object * _basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, CFData *cfdata) @@ -183,11 +183,13 @@ _basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, CFData *cfdata) E_Cfg_Theme_Data *cb_data; o = e_thumb_generate_begin(fulltheme, 48, 48, cfd->dia->win->evas, &o, NULL, NULL); - noext = ecore_file_strip_ext(themefile); + noext = ecore_file_strip_ext(themefile); + cb_data = E_NEW(E_Cfg_Theme_Data, 1); cb_data->cfd = cfd; cb_data->file = strdup(fulltheme); cb_data->theme = strdup(themefile); + e_widget_ilist_append(il, o, noext, _e_config_theme_cb_standard, cb_data, themefile); if (!(strcmp(themefile, cfdata->current_theme))) {