blob: 528b70e1ce3b35db00a5e53879024a64f40e4379 (
plain)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
|
#ifndef SYNC_MAIN_H
#define SYNC_MAIN_H
#include <gtk/gtk.h>
#include <glade/glade.h>
#include <opensync/opensync.h>
#include "sync_group.h"
#include "sync_item.h"
#define XML_FILE PKGDATADIR G_DIR_SEPARATOR_S "sync.glade"
#define TEMP_PATH "%s" G_DIR_SEPARATOR_S ".gnome2" G_DIR_SEPARATOR_S \
"sync" G_DIR_SEPARATOR_S "backup"
#define ANIM_FREQ 100
#define SWITCH_FREQ 10
enum {
COL_NAME,
COL_PIXBUF,
};
enum {
TAB_CHOOSE = 0,
TAB_SYNC,
TAB_CONFLICT,
TAB_ERROR,
TAB_SUCCESS
};
enum {
IMAGE_TAB_PREPARE = 0,
IMAGE_TAB_SYNC,
};
typedef struct {
GladeXML *xml;
GdkPixbuf *backup_icon;
GdkPixbuf *restore_icon;
GdkPixbuf *network_icon;
GtkListStore *model;
SyncItem *local_item;
SyncGroup *group;
GHashTable *sync_items;
gboolean started;
guint animate_id;
} SyncData;
#endif
|