*Keep track of directories inside of themes.

*Formatting.


SVN revision: 26016
This commit is contained in:
David Walter Seikel 2006-09-22 06:07:01 +00:00
parent de694c09bf
commit f9a0087270
1 changed files with 58 additions and 37 deletions

View File

@ -4,7 +4,6 @@
#include <Ecore_Data.h>
#include <sys/types.h>
/**
* @file Ecore_Desktop.h
* @brief The file that provides the freedesktop.org desktop, icon, and menu
@ -84,6 +83,15 @@ struct _Ecore_Desktop_Icon_Theme
};
typedef struct _Ecore_Desktop_Icon_Theme Ecore_Desktop_Icon_Theme;
struct _Ecore_Desktop_Icon_Theme_Directory
{
char *path;
char *type;
int size, minimum, maximum, threshold;
};
typedef struct _Ecore_Desktop_Icon_Theme_Directory
Ecore_Desktop_Icon_Theme_Directory;
enum _Ecore_Desktop_Paths_Type
{
ECORE_DESKTOP_PATHS_CONFIG = 0,
@ -131,10 +139,16 @@ extern "C"
/* Function Prototypes */
EAPI int ecore_desktop_paths_init(void);
EAPI void ecore_desktop_paths_extras_clear(void);
EAPI void ecore_desktop_paths_prepend_user(Ecore_Desktop_Paths_Type type, char *paths);
EAPI void ecore_desktop_paths_prepend_system(Ecore_Desktop_Paths_Type type, char *paths);
EAPI void ecore_desktop_paths_append_user(Ecore_Desktop_Paths_Type type, char *paths);
EAPI void ecore_desktop_paths_append_system(Ecore_Desktop_Paths_Type type, char *paths);
EAPI void ecore_desktop_paths_prepend_user(Ecore_Desktop_Paths_Type
type, char *paths);
EAPI void
ecore_desktop_paths_prepend_system(Ecore_Desktop_Paths_Type type,
char *paths);
EAPI void ecore_desktop_paths_append_user(Ecore_Desktop_Paths_Type
type, char *paths);
EAPI void
ecore_desktop_paths_append_system(Ecore_Desktop_Paths_Type type,
char *paths);
EAPI void ecore_desktop_paths_regen(void);
char *ecore_desktop_paths_file_find(Ecore_List * paths,
const char *file, int sub,
@ -143,14 +157,20 @@ extern "C"
const char
*path),
void *data);
EAPI int ecore_desktop_paths_for_each(Ecore_Desktop_Paths_Type type, Ecore_For_Each function, void *user_data);
char *ecore_desktop_paths_recursive_search(const char *path, const char *file, int sub,
EAPI int ecore_desktop_paths_for_each(Ecore_Desktop_Paths_Type
type,
Ecore_For_Each function,
void *user_data);
char *ecore_desktop_paths_recursive_search(const char *path,
const char *file,
int sub,
int (*dir_func)
(void *data,
const char *path),
int (*func) (void
*data,
const char
const
char
*path),
void *data);
EAPI int ecore_desktop_paths_shutdown(void);
@ -163,27 +183,28 @@ extern "C"
Ecore_Hash *ecore_desktop_ini_get(const char *file);
Ecore_Desktop *ecore_desktop_get(const char *file, const char *lang);
void ecore_desktop_save(Ecore_Desktop * desktop);
EAPI char * ecore_desktop_get_command(Ecore_Desktop *desktop, Ecore_List *files, int fill);
EAPI char *ecore_desktop_get_command(Ecore_Desktop * desktop,
Ecore_List * files, int fill);
EAPI char *ecore_desktop_merge_command(char *exec, char *params);
void ecore_desktop_destroy(Ecore_Desktop * desktop);
EAPI int ecore_desktop_icon_init(void);
EAPI int ecore_desktop_icon_shutdown(void);
const char *ecore_desktop_icon_find(const char *icon,
const char *icon_size,
const char *icon_theme);
Ecore_Hash *ecore_desktop_icon_theme_list(void);
Ecore_Desktop_Icon_Theme *ecore_desktop_icon_theme_get(const char *file, const char *lang);
void ecore_desktop_icon_theme_destroy(Ecore_Desktop_Icon_Theme *icon_theme);
Ecore_Desktop_Icon_Theme *ecore_desktop_icon_theme_get(const char *file,
const char *lang);
void ecore_desktop_icon_theme_destroy(Ecore_Desktop_Icon_Theme
* icon_theme);
EAPI void ecore_desktop_menu_for_each(void (*func)(char *name, char *path, Ecore_Hash *apps));
EAPI void
ecore_desktop_menu_for_each(void (*func)
(char *name, char *path, Ecore_Hash * apps));
Ecore_Desktop_Tree *ecore_desktop_menu_get(char *file);
Ecore_Desktop_Tree *ecore_desktop_tree_new(char *buffer);
Ecore_Desktop_Tree *ecore_desktop_tree_add(Ecore_Desktop_Tree * tree,
char *element);