summaryrefslogtreecommitdiff
path: root/shell/app-icon.h
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2014-02-14 13:06:15 +0100
committerJonny Lamb <jonny.lamb@collabora.co.uk>2014-02-17 20:15:49 +0100
commitc4bd6363df9dfb3199d80542c6f19159cca1ffe1 (patch)
tree38fe31ebe7f1544895bb0d3e0f18b7e839c35cd2 /shell/app-icon.h
parenta3b3d15a3d3acc3df39615ead685dafcb9371650 (diff)
downloadgraynard-c4bd6363df9dfb3199d80542c6f19159cca1ffe1.tar.gz
graynard-c4bd6363df9dfb3199d80542c6f19159cca1ffe1.zip
app-icon: add new widget subclass for icons on the panel
Diffstat (limited to 'shell/app-icon.h')
-rw-r--r--shell/app-icon.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/shell/app-icon.h b/shell/app-icon.h
new file mode 100644
index 0000000..f3bc8f5
--- /dev/null
+++ b/shell/app-icon.h
@@ -0,0 +1,39 @@
+/*
+ * Copyright (C) 2014 Collabora Ltd.
+ *
+ * Author: Jonny Lamb <jonny.lamb@collabora.co.uk>
+ */
+
+#ifndef __WESTON_GTK_APP_ICON_H__
+#define __WESTON_GTK_APP_ICON_H__
+
+#include <gtk/gtk.h>
+
+#define WESTON_GTK_APP_ICON_TYPE (weston_gtk_app_icon_get_type ())
+#define WESTON_GTK_APP_ICON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), WESTON_GTK_APP_ICON_TYPE, WestonGtkAppIcon))
+#define WESTON_GTK_APP_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), WESTON_GTK_APP_ICON_TYPE, WestonGtkAppIconClass))
+#define WESTON_GTK_IS_APP_ICON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), WESTON_GTK_APP_ICON_TYPE))
+#define WESTON_GTK_IS_APP_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), WESTON_GTK_APP_ICON_TYPE))
+#define WESTON_GTK_APP_ICON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), WESTON_GTK_APP_ICON_TYPE, WestonGtkAppIconClass))
+
+typedef struct WestonGtkAppIcon WestonGtkAppIcon;
+typedef struct WestonGtkAppIconClass WestonGtkAppIconClass;
+typedef struct WestonGtkAppIconPrivate WestonGtkAppIconPrivate;
+
+struct WestonGtkAppIcon
+{
+ GtkButton parent;
+
+ WestonGtkAppIconPrivate *priv;
+};
+
+struct WestonGtkAppIconClass
+{
+ GtkButtonClass parent_class;
+};
+
+GType weston_gtk_app_icon_get_type (void) G_GNUC_CONST;
+GtkWidget *weston_gtk_app_icon_new (const gchar *icon_name);
+GtkWidget *weston_gtk_app_icon_new_from_gicon (GIcon *icon);
+
+#endif /* __WESTON_GTK_APP_ICON_H__ */