From b889959533bf3289cb0bca356b5f2188a4687558 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Tue, 28 Nov 2006 12:42:11 +0000 Subject: [PATCH] Fix icon on the Import button. Compare current theme with selected theme and if they are the same then no change was made and we don't need to always restart. SVN revision: 27265 --- src/bin/e_int_config_theme.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bin/e_int_config_theme.c b/src/bin/e_int_config_theme.c index 546d0ef2b..486ff5a84 100644 --- a/src/bin/e_int_config_theme.c +++ b/src/bin/e_int_config_theme.c @@ -425,7 +425,7 @@ _basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cf of = e_widget_list_add(evas, 0, 0); il = e_widget_list_add(evas, 0, 1); - o = e_widget_button_add(evas, _("Import..."), "enlightenment/theme", + o = e_widget_button_add(evas, _("Import..."), "enlightenment/themes", _cb_import, cfdata, NULL); e_widget_list_object_append(il, o, 1, 0, 0.5); e_widget_list_object_append(of, il, 1, 0, 0.0); @@ -447,8 +447,12 @@ static int _basic_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata) { E_Action *a; + E_Config_Theme *ct; /* Actually take our cfdata settings and apply them in real life */ + ct = e_theme_config_get("theme"); + if (!strcmp(ct->file, cfdata->theme)) return 1; + e_theme_config_set("theme", cfdata->theme); e_config_save_queue();