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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
/*
* MATE panel launcher module.
* (C) 1997 The Free Software Foundation
* Copyright (C) 2012-2021 MATE Developers
*
* Authors: Miguel de Icaza
* Federico Mena
* CORBAized by George Lebl
* de-CORBAized by George Lebl
*/
#ifndef LAUNCHER_H
#define LAUNCHER_H
#include "applet.h"
#include "panel-widget.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
AppletInfo *info;
GtkWidget *button;
char *location;
GKeyFile *key_file;
GFileMonitor *monitor;
GtkWidget *prop_dialog;
GSList *error_dialogs;
gulong destroy_handler;
} Launcher;
void panel_launcher_create (PanelToplevel *toplevel,
int position,
const char *location);
void panel_launcher_create_with_id (const char *toplevel_id,
int position,
const char *location);
gboolean panel_launcher_create_copy (PanelToplevel *toplevel,
int position,
const char *location);
void panel_launcher_create_from_info (PanelToplevel *toplevel,
int position,
gboolean exec_info,
const char *exec_or_uri,
const char *name,
const char *comment,
const char *icon);
void launcher_launch (Launcher *launcher,
const gchar *action);
void launcher_properties (Launcher *launcher);
void launcher_load_from_gsettings (PanelWidget *panel_widget,
gboolean locked,
gint position,
const char *id);
void panel_launcher_delete (Launcher *launcher);
void ask_about_launcher (const char *file,
PanelWidget *panel,
int pos,
gboolean exactpos);
Launcher * find_launcher (const char *path);
void launcher_properties_destroy (Launcher *launcher);
void panel_launcher_set_dnd_enabled (Launcher *launcher,
gboolean dnd_enabled);
#ifdef __cplusplus
}
#endif
#endif
|