remove some unneeded casts, and unused code
add a fixme SVN revision: 27536
This commit is contained in:
parent
dfaefc2560
commit
042292849b
|
@ -132,7 +132,6 @@ ecore_desktop_ini_get(const char *file)
|
|||
}
|
||||
|
||||
}
|
||||
buffer[0] = (char)0;
|
||||
|
||||
fclose(f);
|
||||
return result;
|
||||
|
|
|
@ -448,7 +448,7 @@ ecore_desktop_icon_theme_get(const char *icon_theme, const char *lang __UNUSED__
|
|||
theme_path = strdup(icon_theme);
|
||||
theme_dir = ecore_file_get_dir(theme_path);
|
||||
if (theme_dir)
|
||||
icon_theme = (char *)ecore_file_get_file(theme_dir);
|
||||
icon_theme = ecore_file_get_file(theme_dir);
|
||||
#ifdef DEBUG
|
||||
printf("LOADING THEME %s - %s\n", icon_theme, theme_path);
|
||||
#endif
|
||||
|
@ -483,7 +483,7 @@ ecore_desktop_icon_theme_get(const char *icon_theme, const char *lang __UNUSED__
|
|||
|
||||
/* According to the spec, name and comment are required, but we can fake those easily enough. */
|
||||
value = ecore_hash_get(result->group, "Name");
|
||||
if (!value) value = (char *) icon_theme;
|
||||
if (!value) value = icon_theme;
|
||||
result->name = strdup(value);
|
||||
value = ecore_hash_get(result->group, "Comment");
|
||||
if (!value) value = "No comment provided.";
|
||||
|
|
|
@ -936,6 +936,7 @@ _ecore_desktop_menu_unxml_rules(Ecore_Desktop_Tree * rules,
|
|||
{
|
||||
if (tree->elements[i].type == ECORE_DESKTOP_TREE_ELEMENT_TYPE_STRING)
|
||||
{
|
||||
/* FIXME <All /> or <All foo="bar"> would be valid input (which this won't catch) */
|
||||
if (strcmp((char *)tree->elements[i].element, "<All/") == 0)
|
||||
{
|
||||
sprintf(temp, "%c%cA", type, sub_type);
|
||||
|
|
Loading…
Reference in New Issue