summaryrefslogtreecommitdiff
path: root/shell/app-launcher.h
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2013-10-24 01:49:51 +0200
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2013-10-26 02:00:00 +0200
commit315cc4692c2f5c3defa86630d56ebe04d2b6b2a5 (patch)
tree1be7e6bae11b831368189efd259e340a1325309f /shell/app-launcher.h
parent33a812a33d084a426eb662aa355b31d37c1babe8 (diff)
downloadgraynard-315cc4692c2f5c3defa86630d56ebe04d2b6b2a5.tar.gz
graynard-315cc4692c2f5c3defa86630d56ebe04d2b6b2a5.zip
Make the grid actually show real launchers
Diffstat (limited to 'shell/app-launcher.h')
-rw-r--r--shell/app-launcher.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/shell/app-launcher.h b/shell/app-launcher.h
new file mode 100644
index 0000000..93965e8
--- /dev/null
+++ b/shell/app-launcher.h
@@ -0,0 +1,41 @@
+/*
+ * Copyright (C) 2013 Collabora Ltd.
+ *
+ * Author: Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
+ */
+
+#ifndef __APP_LAUNCHER_H__
+#define __APP_LAUNCHER_H__
+
+#include <gio/gio.h>
+#include <gio/gdesktopappinfo.h>
+#include <gtk/gtk.h>
+
+#define APP_TYPE_LAUNCHER (app_launcher_get_type ())
+#define APP_LAUNCHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), APP_TYPE_LAUNCHER, AppLauncher))
+#define APP_LAUNCHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), APP_TYPE_LAUNCHER, AppLauncherClass))
+#define APP_IS_LAUNCHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), APP_TYPE_LAUNCHER))
+#define APP_IS_LAUNCHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), APP_TYPE_LAUNCHER))
+#define APP_LAUNCHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), APP_TYPE_LAUNCHER, AppLauncherClass))
+
+typedef struct AppLauncher AppLauncher;
+typedef struct AppLauncherClass AppLauncherClass;
+typedef struct AppLauncherPrivate AppLauncherPrivate;
+
+struct AppLauncher
+{
+ GtkBox parent;
+
+ AppLauncherPrivate *priv;
+};
+
+struct AppLauncherClass
+{
+ GtkBoxClass parent_class;
+};
+
+GType app_launcher_get_type (void) G_GNUC_CONST;
+GtkWidget *app_launcher_new_from_desktop_info (GDesktopAppInfo *info);
+void app_launcher_activate (AppLauncher *self);
+
+#endif /* __APP_LAUNCHER_H__ */