Added new prop value for default border style.

Fixed leakage in e config free where some const char props were not getting
stringshare_del.


SVN revision: 26583
This commit is contained in:
Christopher Michael 2006-10-14 03:45:55 +00:00
parent 97e33b6187
commit c2019b515b
2 changed files with 16 additions and 1 deletions

View File

@ -498,6 +498,8 @@ e_config_init(void)
E_CONFIG_VAL(D, T, wallpaper_grad_c2_r, INT);
E_CONFIG_VAL(D, T, wallpaper_grad_c2_g, INT);
E_CONFIG_VAL(D, T, wallpaper_grad_c2_b, INT);
E_CONFIG_VAL(D, T, theme_default_border_style, STR);
E_CONFIG_LIST(D, T, mime_icons, _e_config_mime_icon_edd); /**/
@ -1277,6 +1279,10 @@ e_config_init(void)
// CFG_MIME_ICON("image/*", "e/icons/fileman/mime/image");
}
IFCFGEND;
IFCFG(0x00103);
e_config->theme_default_border_style = evas_stringshare_add("default");
IFCFGEND;
#if 0 /* example of new config */
IFCFG(0x0090); /* the version # where this value(s) was introduced */
@ -1960,6 +1966,13 @@ _e_config_free(void)
if (e_config->transition_desk) evas_stringshare_del(e_config->transition_desk);
if (e_config->transition_change) evas_stringshare_del(e_config->transition_change);
if (e_config->input_method) evas_stringshare_del(e_config->input_method);
if (e_config->exebuf_term_cmd) evas_stringshare_del(e_config->exebuf_term_cmd);
if (e_config->desklock_personal_passwd) evas_stringshare_del(e_config->desklock_personal_passwd);
if (e_config->desklock_background) evas_stringshare_del(e_config->desklock_background);
if (e_config->icon_theme) evas_stringshare_del(e_config->icon_theme);
if (e_config->wallpaper_import_last_dev) evas_stringshare_del(e_config->wallpaper_import_last_dev);
if (e_config->wallpaper_import_last_path) evas_stringshare_del(e_config->wallpaper_import_last_path);
if (e_config->theme_default_border_style) evas_stringshare_del(e_config->theme_default_border_style);
E_FREE(e_config);
}
}

View File

@ -51,7 +51,7 @@ typedef Eet_Data_Descriptor E_Config_DD;
/* increment this whenever a new set of config values are added but the users
* config doesn't need top be wiped - simply new values need to be put in
*/
#define E_CONFIG_FILE_GENERATION 0x0102
#define E_CONFIG_FILE_GENERATION 0x0103
#define E_CONFIG_FILE_VERSION ((E_CONFIG_FILE_EPOCH << 16) | E_CONFIG_FILE_GENERATION)
#define E_EVAS_ENGINE_DEFAULT 0
@ -251,6 +251,8 @@ struct _E_Config
int wallpaper_grad_c2_r; // INTERNAL
int wallpaper_grad_c2_g; // INTERNAL
int wallpaper_grad_c2_b; // INTERNAL
const char *theme_default_border_style;
Evas_List *mime_icons;
};