source: trunk/third/gnome-core/panel/menu-fentry.h @ 17152

Revision 17152, 1.7 KB checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r17151, which included commits to RCS files with non-trunk default branches.
Line 
1#ifndef MENU_FENTRY_H
2#define MENU_FENTRY_H
3
4#include <sys/stat.h>
5#include <unistd.h>
6
7BEGIN_GNOME_DECLS
8
9typedef struct _MenuFinfo MenuFinfo;
10typedef struct _FileRec FileRec;
11typedef struct _DirRec DirRec;
12typedef struct _MFile MFile;
13
14struct _MenuFinfo {
15        char *menudir;
16        gboolean applets;
17        gboolean launcher_add;
18        gboolean favourites_add;
19        char *dir_name;
20        char *pixmap_name;     
21        gboolean fake_menu;
22        gboolean title;
23        FileRec *fr;
24};
25
26struct _MFile {
27        char *name;
28        gboolean merged;
29        gboolean verified;
30};
31
32enum {
33        FILE_REC_FILE, /*.desktop file record*/
34        FILE_REC_DIR,  /*directory*/
35        FILE_REC_EXTRA, /*just check the mtime*/
36        FILE_REC_SEP
37};
38
39struct _FileRec {
40        int type;
41        gboolean merged;
42        char *name;
43        char *comment;
44        char *fullname;
45        char *icon;
46        char *goad_id;
47        char *tryexec_path;
48        DirRec *parent;
49        time_t mtime;
50        time_t last_stat;
51};
52
53struct _DirRec {
54        FileRec frec;
55        time_t dentrymtime;
56        time_t dentrylast_stat;
57        time_t merge_mtime;
58        gboolean force_reread;
59        GSList *tryexecs;
60        GSList *recs; /*records for directories*/
61        GSList *mfl;  /*records of menus using this record*/
62};
63
64char * get_applet_goad_id_from_dentry(GnomeDesktopEntry *ii);
65
66GSList * get_mfiles_from_menudir(const char *menudir);
67
68FileRec * fr_read_dir(DirRec *dr, const char *mdir, struct stat *dstat, struct stat *merge_dstat, int sublevels);
69FileRec * fr_replace(FileRec *fr);
70FileRec * fr_check_and_reread(FileRec *fr);
71FileRec * fr_get_dir(const char *mdir);
72gboolean fr_is_subdir (const char *dir, const char *superdir, int superdir_len);
73char * fr_get_mergedir (const char *dir);
74void fr_force_reread(void);
75GSList* fr_get_all_dirs (void);
76
77void init_fr_chunks (void);
78
79void free_mfile (MFile *mfile);
80void free_mfile_list (GSList *list);
81
82END_GNOME_DECLS
83
84#endif
Note: See TracBrowser for help on using the repository browser.