r487: Applications can define a list of menu items to display on their menus
[rox-filer.git] / ROX-Filer / src / appmenu.h
blob79436ef00d4ffa93268f47b71ef744d2adf80748
1 /*
2 * $Id$
4 * Diego Zamboni <zamboni@cerias.purdue.edu>
5 */
7 #ifndef _APPMENU_H
8 #define _APPMENU_H
10 #include <gtk/gtk.h>
11 #include "fscache.h"
13 /* Name of the file where the menu is stored */
14 #define APPMENU_FILENAME "AppMenu"
16 /* Store appmenus */
17 typedef struct _AppMenus {
18 GList *items; /* Raw menu items for the application menu */
19 int ref;
20 time_t last_read; /* Last time the menu was read */
21 GtkWidget *last_menu; /* last menu on which this AppMenu was posted */
22 } AppMenus;
24 extern GFSCache *appmenu_cache;
26 /* External interface */
27 void appmenu_init(void);
28 void appmenu_add(AppMenus *dir, GtkWidget *menu);
29 void appmenu_remove(GtkWidget *menu);
30 AppMenus *appmenu_query(char *path);
32 #endif /* _APPMENU_H */