From 315cc4692c2f5c3defa86630d56ebe04d2b6b2a5 Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Thu, 24 Oct 2013 01:49:51 +0200 Subject: Make the grid actually show real launchers --- shell/app-launcher.h | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 shell/app-launcher.h (limited to 'shell/app-launcher.h') 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 + */ + +#ifndef __APP_LAUNCHER_H__ +#define __APP_LAUNCHER_H__ + +#include +#include +#include + +#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__ */ -- cgit v1.3.1