summaryrefslogtreecommitdiff
path: root/mate-panel/launcher.h
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-12-01 22:56:10 -0300
committerPerberos <[email protected]>2011-12-01 22:56:10 -0300
commitc51ef797a707f4e2c6f9688d4378f2b0e9898a66 (patch)
tree019ae92bb53c19b30077545cb14743cbd1b57aef /mate-panel/launcher.h
downloadmate-panel-c51ef797a707f4e2c6f9688d4378f2b0e9898a66.tar.bz2
mate-panel-c51ef797a707f4e2c6f9688d4378f2b0e9898a66.tar.xz
moving from https://github.com/perberos/mate-desktop-environment
Diffstat (limited to 'mate-panel/launcher.h')
-rw-r--r--mate-panel/launcher.h80
1 files changed, 80 insertions, 0 deletions
diff --git a/mate-panel/launcher.h b/mate-panel/launcher.h
new file mode 100644
index 00000000..1b2d7b88
--- /dev/null
+++ b/mate-panel/launcher.h
@@ -0,0 +1,80 @@
+/*
+ * MATE panel launcher module.
+ * (C) 1997 The Free Software Foundation
+ *
+ * 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;
+
+ 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,
+ GtkWidget *widget);
+
+void launcher_properties (Launcher *launcher);
+
+void launcher_load_from_mateconf (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