Enlightenment CVS committal

Author  : devilhorns
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_int_config_theme.c 


Log Message:
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.

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_int_config_theme.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -3 -r1.41 -r1.42
--- e_int_config_theme.c        31 Oct 2006 14:56:28 -0000      1.41
+++ e_int_config_theme.c        28 Nov 2006 12:42:11 -0000      1.42
@@ -425,7 +425,7 @@
    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 @@
 _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();
    



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to