add efreet_menu_new()

small fixes


SVN revision: 30267
This commit is contained in:
rephorm 2007-06-07 01:22:48 +00:00 committed by rephorm
parent 5a88f37fe1
commit 5a12b590ac
5 changed files with 17 additions and 3 deletions

View File

@ -840,7 +840,7 @@ efreet_icon_new(const char *path)
if (!icon->name)
{
char *file;
const char *file;
file = ecore_file_get_file(icon->path);
p = strrchr(icon->path, '.');

View File

@ -554,6 +554,15 @@ efreet_menu_shutdown(void)
ecore_string_shutdown();
}
Efreet_Menu *
efreet_menu_new(void)
{
Efreet_Menu *menu;
menu = efreet_menu_entry_new();
menu->type = EFREET_MENU_ENTRY_MENU;
return menu;
}
/**
* @return Returns the Efreet_Menu_Internal representation of the default menu or
* NULL if none found

View File

@ -51,6 +51,7 @@ struct Efreet_Menu
int efreet_menu_kde_legacy_init(void);
Efreet_Menu *efreet_menu_new(void);
Efreet_Menu *efreet_menu_get(void);
Efreet_Menu *efreet_menu_parse(const char *path);
int efreet_menu_save(Efreet_Menu *menu, const char *path);

View File

@ -421,6 +421,7 @@ efreet_util_desktop_comment_glob_list(const char *glob)
/**
* Find all desktop categories
* This list must be freed using ecore_list_destroy()
*
* @return an Ecore_List of category names (const char *)
*/
@ -432,10 +433,13 @@ efreet_util_desktop_categories_list()
/**
* Find all desktops in a given category
*
* Note: this returns a pointer to an internal list. Do not add to, remove from, or delete this list.
*
* @param category the category name
* @return a list of desktops
*/
const Ecore_List *
Ecore_List *
efreet_util_desktop_category_list(const char *category)
{
return ecore_hash_get(desktops_by_category, category);

View File

@ -39,7 +39,7 @@ Ecore_List *efreet_util_desktop_generic_name_glob_list(const char *glob);
Ecore_List *efreet_util_desktop_comment_glob_list(const char *glob);
Ecore_List *efreet_util_desktop_categories_list();
const Ecore_List *efreet_util_desktop_category_list(const char *category);
Ecore_List *efreet_util_desktop_category_list(const char *category);
Ecore_List *efreet_util_menus_find();
extern int EFREET_EVENT_DESKTOP_LIST_CHANGE;