1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#ifndef _HOOKS_H_
#define _HOOKS_H_
gboolean check_update_hooks(TrayApplet *ta);
void hook_tray_icon_init(TrayApplet *ta);
typedef struct _HookFile HookFile;
struct _HookFile
{
char *filename;
time_t mtime;
guint8 md5[16];
gboolean cmd_run;
gboolean seen;
};
typedef struct _HookTrayAppletPrivate HookTrayAppletPrivate;
struct _HookTrayAppletPrivate
{
GtkWidget *dialog_hooks;
GtkWidget *label_title;
GtkWidget *textview_hook;
GtkWidget *button_next;
GtkWidget *button_run;
// the list of all hook files
GList *hook_files;
// the notification
NotifyNotification *active_notification;
};
#endif
|