comparison src/editors.h @ 1479:d062522699dc

added simple desktop file editor
author nadvornik
date Fri, 27 Mar 2009 08:05:14 +0000
parents e9f9d3da3f43
children c9c1a16ff8ae
comparison
equal deleted inserted replaced
1478:3cc98d5c6907 1479:d062522699dc
45 gchar *hotkey; 45 gchar *hotkey;
46 GList *ext_list; 46 GList *ext_list;
47 gchar *file; 47 gchar *file;
48 gchar *comment; /* .desktop Comment key, used to show a tooltip */ 48 gchar *comment; /* .desktop Comment key, used to show a tooltip */
49 EditorFlags flags; 49 EditorFlags flags;
50 gboolean hidden; 50 gboolean hidden; /* explicitly hidden, shown in configuration dialog */
51 gboolean ignored; /* not interesting, do not show at all */
51 }; 52 };
52 53
53 #define EDITOR_ERRORS(flags) ((flags) & EDITOR_ERROR_MASK) 54 #define EDITOR_ERRORS(flags) ((flags) & EDITOR_ERROR_MASK)
54 #define EDITOR_ERRORS_BUT_SKIPPED(flags) (!!(((flags) & EDITOR_ERROR_MASK) && !((flags) & EDITOR_ERROR_SKIPPED))) 55 #define EDITOR_ERRORS_BUT_SKIPPED(flags) (!!(((flags) & EDITOR_ERROR_MASK) && !((flags) & EDITOR_ERROR_SKIPPED)))
55 56
59 EDITOR_CB_CONTINUE = 0, /* continue multiple editor execution on remaining files*/ 60 EDITOR_CB_CONTINUE = 0, /* continue multiple editor execution on remaining files*/
60 EDITOR_CB_SKIP, /* skip the remaining files */ 61 EDITOR_CB_SKIP, /* skip the remaining files */
61 EDITOR_CB_SUSPEND /* suspend execution, one of editor_resume or editor_skip 62 EDITOR_CB_SUSPEND /* suspend execution, one of editor_resume or editor_skip
62 must be called later */ 63 must be called later */
63 }; 64 };
65
66 enum {
67 DESKTOP_FILE_COLUMN_KEY,
68 DESKTOP_FILE_COLUMN_NAME,
69 DESKTOP_FILE_COLUMN_HIDDEN,
70 DESKTOP_FILE_COLUMN_WRITABLE,
71 DESKTOP_FILE_COLUMN_PATH,
72 DESKTOP_FILE_COLUMN_COUNT
73 };
74
75 extern GtkListStore *desktop_file_list;
76
64 77
65 extern GHashTable *editors; 78 extern GHashTable *editors;
66 79
67 void editor_load_descriptions(void); 80 void editor_load_descriptions(void);
68 GList *editor_list_get(void); 81 GList *editor_list_get(void);