Download

Support

/build/buildd/efreet-0.5.0.063/src/lib/efreet_menu.c File Reference

#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <dirent.h>
#include <Ecore_Str.h>
#include <Ecore_File.h>
#include "Efreet.h"
#include "efreet_private.h"
#include "efreet_xml.h"
Include dependency graph for efreet_menu.c:

Data Structures

struct  Efreet_Menu_App_Dir
struct  Efreet_Menu_Desktop
struct  Efreet_Menu_Filter
struct  Efreet_Menu_Filter_Op
struct  Efreet_Menu_Internal
struct  Efreet_Menu_Layout
struct  Efreet_Menu_Move

Defines

#define EFREET_MODULE_LOG_DOM   _efreet_menu_log_dom

Typedefs

typedef struct Efreet_Menu_App_Dir Efreet_Menu_App_Dir
typedef struct Efreet_Menu_Desktop Efreet_Menu_Desktop
typedef struct Efreet_Menu_Filter Efreet_Menu_Filter
typedef struct
Efreet_Menu_Filter_Op 
Efreet_Menu_Filter_Op
typedef enum
Efreet_Menu_Filter_Op_Type 
Efreet_Menu_Filter_Op_Type
typedef enum
Efreet_Menu_Filter_Type 
Efreet_Menu_Filter_Type
typedef struct Efreet_Menu_Internal Efreet_Menu_Internal
typedef struct Efreet_Menu_Layout Efreet_Menu_Layout
typedef enum
Efreet_Menu_Layout_Type 
Efreet_Menu_Layout_Type
typedef struct Efreet_Menu_Move Efreet_Menu_Move

Enumerations

enum  Efreet_Menu_Filter_Op_Type { EFREET_MENU_FILTER_OP_OR, EFREET_MENU_FILTER_OP_AND, EFREET_MENU_FILTER_OP_NOT }
enum  Efreet_Menu_Filter_Type { EFREET_MENU_FILTER_INCLUDE, EFREET_MENU_FILTER_EXCLUDE }
enum  Efreet_Menu_Layout_Type { EFREET_MENU_LAYOUT_MENUNAME, EFREET_MENU_LAYOUT_FILENAME, EFREET_MENU_LAYOUT_SEPARATOR, EFREET_MENU_LAYOUT_MERGE }

Functions

Eina_List * efreet_default_dirs_get (const char *user_dir, Eina_List *system_dirs, const char *suffix)
 Creates the list of directories based on the user dir, system dirs and given suffix.
EAPI int efreet_menu_desktop_insert (Efreet_Menu *menu, Efreet_Desktop *desktop, int pos)
 Insert a desktop element in a menu structure. Only accepts desktop files in default directories.
EAPI int efreet_menu_desktop_remove (Efreet_Menu *menu, Efreet_Desktop *desktop)
 Remove a desktop element in a menu structure. Only accepts desktop files in default directories.
EAPI void efreet_menu_dump (Efreet_Menu *menu, const char *indent)
 Dumps the contents of the menu to the command line.
EAPI void efreet_menu_file_set (const char *file)
EAPI void efreet_menu_free (Efreet_Menu *entry)
EAPI Efreet_Menuefreet_menu_get (void)
 Creates the default menu representation.
int efreet_menu_init (void)
 Initializes the Efreet Menu system.
EAPI int efreet_menu_kde_legacy_init (void)
 Initialize legacy kde support. This function blocks while the kde-config script is run.
EAPI Efreet_Menuefreet_menu_new (const char *name)
 Creates a new menu.
EAPI Efreet_Menuefreet_menu_parse (const char *path)
 Parses the given .menu file and creates the menu representation.
EAPI int efreet_menu_save (Efreet_Menu *menu, const char *path)
 Saves the menu to file.
void efreet_menu_shutdown (void)
 Shuts down the Efreet menu system.

Variables

Eina_List * efreet_menu_kde_legacy_dirs = NULL

Define Documentation

#define EFREET_MODULE_LOG_DOM   _efreet_menu_log_dom

Typedef Documentation

Efreet_Menu_Filter_Op_Type

Efreet_Menu_Filter_Type

Efreet_Menu_Layout_Type


Enumeration Type Documentation

The type of operations we can perform with a filter

Enumerator:
EFREET_MENU_FILTER_OP_OR 
EFREET_MENU_FILTER_OP_AND 
EFREET_MENU_FILTER_OP_NOT 

The type of filter

Enumerator:
EFREET_MENU_FILTER_INCLUDE 
EFREET_MENU_FILTER_EXCLUDE 

The type of layout

Enumerator:
EFREET_MENU_LAYOUT_MENUNAME 
EFREET_MENU_LAYOUT_FILENAME 
EFREET_MENU_LAYOUT_SEPARATOR 
EFREET_MENU_LAYOUT_MERGE 

Variable Documentation

Eina_List* efreet_menu_kde_legacy_dirs = NULL

The directories to use for KDELegacy entries

Referenced by efreet_menu_kde_legacy_init(), and efreet_menu_shutdown().


Copyright © Enlightenment.org

Efreet Documentation Generated: Tue Dec 22 16:13:51 2009