wmail: fixed some typo's.
[dockapps.git] / wmtrash / wmtrash.h
bloba13514269a8745f88a5600fa25c57c3b4cff67df
1 /*
2 * this file is part of the "wmtrash" project
3 * Copyright (C) 2004 by Jean Philippe GUILLEMIN <jp.guillemin@free.fr>
4 * license: This software is under GPL license
5 * rev: 0.2
6 */
10 #ifndef __CONFPATH
11 #define __CONFPATH "/etc/wmtrash/"
12 #endif
14 #ifndef __CONFFILE
15 #define __CONFFILE "default.cf"
16 #endif
18 #ifndef __ICONPATH
19 #define __ICONPATH "/usr/share/wmtrash/"
20 #endif
22 #define SHORT_STRING 64
23 #define MEDIUM_STRING 128
24 #define BIG_STRING 256
25 #define LONG_STRING 1024
26 #define EXTRALONG_STRING 4096
28 // Prototypes ************************************************************
30 struct wmtrash {
31 char configfile[MEDIUM_STRING];
32 char param_fm[MEDIUM_STRING];
33 char fm[BIG_STRING];
34 char param_img[MEDIUM_STRING];
35 char imagefile[BIG_STRING];
36 char param_path[MEDIUM_STRING];
37 char path[BIG_STRING];
40 GtkWidget * build_dockapp(char *configfile);
42 GtkWidget *create_main_dockapp_icon_window
43 (GtkWidget *main_window,
44 unsigned int size);
46 void launchonclick
47 (GtkWidget *event_box,
48 GdkEventButton *event,
49 struct wmtrash *data);
51 int parse_from_config
52 (char *filename,
53 char *param,
54 char *value);
56 int replace_value_in_config
57 (char *filename,
58 char *param,
59 char *new_value);
61 void enter_callback1(
62 GtkWidget *entry1,
63 struct wmtrash *data);
65 void enter_callback2(
66 GtkWidget *entry1,
67 struct wmtrash *data);
69 void close_callback(
70 GtkWidget *entry,
71 struct wmtrash *data);
73 int usage(char *homecf, char *defaultcf);
75 int fcopy( char *sfile,
76 char *dfile);