1 | /* |
---|
2 | * GNOME panel launcher module. |
---|
3 | * (C) 1997 The Free Software Foundation |
---|
4 | * |
---|
5 | * Authors: Miguel de Icaza |
---|
6 | * Federico Mena |
---|
7 | * CORBAized by George Lebl |
---|
8 | * de-CORBAized by George Lebl |
---|
9 | */ |
---|
10 | |
---|
11 | #ifndef LAUNCHER_H |
---|
12 | #define LAUNCHER_H |
---|
13 | |
---|
14 | #include <panel-widget.h> |
---|
15 | |
---|
16 | BEGIN_GNOME_DECLS |
---|
17 | |
---|
18 | typedef struct { |
---|
19 | AppletInfo *info; |
---|
20 | GtkWidget *button; |
---|
21 | GtkObject *dedit; |
---|
22 | GnomeDesktopEntry *dentry; |
---|
23 | GnomeDesktopEntry *revert_dentry; |
---|
24 | |
---|
25 | GtkWidget *prop_dialog; |
---|
26 | } Launcher; |
---|
27 | |
---|
28 | /* If launchers are loaded from ANYWHERE but the normal panel |
---|
29 | * launcher location, do HOARD the file (with launcher_hoard), |
---|
30 | * otherwise things may be removed from disk when they shouldn't |
---|
31 | * etc. Also always hoard if an applet which owns a desktop already |
---|
32 | * exists.*/ |
---|
33 | Launcher * load_launcher_applet_full (const char *params, |
---|
34 | GnomeDesktopEntry *dentry, |
---|
35 | PanelWidget *panel, |
---|
36 | int pos, |
---|
37 | gboolean exactpos); |
---|
38 | Launcher * load_launcher_applet (const char *params, |
---|
39 | PanelWidget *panel, |
---|
40 | int pos, |
---|
41 | gboolean exactpos); |
---|
42 | Launcher * load_launcher_applet_from_info (const char *name, |
---|
43 | const char *comment, |
---|
44 | char **exec, |
---|
45 | int execn, |
---|
46 | const char *icon, |
---|
47 | PanelWidget *panel, |
---|
48 | int pos, |
---|
49 | gboolean exactpos); |
---|
50 | Launcher * load_launcher_applet_from_info_url(const char *name, |
---|
51 | const char *comment, |
---|
52 | const char *url, |
---|
53 | const char *icon, |
---|
54 | PanelWidget *panel, |
---|
55 | int pos, |
---|
56 | gboolean exactpos); |
---|
57 | void launcher_properties (Launcher *launcher); |
---|
58 | |
---|
59 | void ask_about_launcher (const char *file, |
---|
60 | PanelWidget *panel, |
---|
61 | int pos, |
---|
62 | gboolean exactpos); |
---|
63 | |
---|
64 | /* if location == NULL make a new filename, convert to gnome style and |
---|
65 | * save */ |
---|
66 | void launcher_save (Launcher *launcher); |
---|
67 | /* always make a new unique filename, useful for converting OLD configs */ |
---|
68 | void launcher_hoard (Launcher *launcher); |
---|
69 | |
---|
70 | Launcher * find_launcher (const char *path); |
---|
71 | |
---|
72 | /* make file name from base */ |
---|
73 | char * launcher_file_name (const char *base); |
---|
74 | |
---|
75 | END_GNOME_DECLS |
---|
76 | |
---|
77 | #endif |
---|