Disable Ok/Apply if the selected theme matches the current one
authorChristopher Michael <cpmichael1@comcast.net>
Sat, 14 Jan 2006 01:39:58 +0000 (01:39 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Sat, 14 Jan 2006 01:39:58 +0000 (01:39 +0000)
SVN revision: 19760

src/bin/e_int_config_theme.c

index 0c5ee99..5d18c1e 100644 (file)
@@ -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)))
                         {