aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-menu-item.h
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2012-01-14 06:47:32 +0100
committerLars Uebernickel <lars.uebernickel@canonical.com>2012-01-14 06:47:32 +0100
commit9025561994ab31a85b47f825cd096be86dd57299 (patch)
tree6562bc26355eeda9b171b7442028f04d5576857b /src/indicator-menu-item.h
parent7657cf8bcc934bd5d4456fb1cc04a88c6c4c8bca (diff)
downloadayatana-indicator-printers-9025561994ab31a85b47f825cd096be86dd57299.tar.gz
ayatana-indicator-printers-9025561994ab31a85b47f825cd096be86dd57299.tar.bz2
ayatana-indicator-printers-9025561994ab31a85b47f825cd096be86dd57299.zip
Use a custom menu item which shows printer status on the right
Diffstat (limited to 'src/indicator-menu-item.h')
-rw-r--r--src/indicator-menu-item.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/src/indicator-menu-item.h b/src/indicator-menu-item.h
new file mode 100644
index 0000000..39c456a
--- /dev/null
+++ b/src/indicator-menu-item.h
@@ -0,0 +1,54 @@
+
+#ifndef INDICATOR_MENU_ITEM_H
+#define INDICATOR_MENU_ITEM_H
+
+#include <gtk/gtk.h>
+
+G_BEGIN_DECLS
+
+#define INDICATOR_TYPE_MENU_ITEM indicator_menu_item_get_type()
+
+#define INDICATOR_MENU_ITEM(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
+ INDICATOR_TYPE_MENU_ITEM, IndicatorMenuItem))
+
+#define INDICATOR_MENU_ITEM_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST ((klass), \
+ INDICATOR_TYPE_MENU_ITEM, IndicatorMenuItemClass))
+
+#define INDICATOR_IS_MENU_ITEM(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
+ INDICATOR_TYPE_MENU_ITEM))
+
+#define INDICATOR_IS_MENU_ITEM_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE ((klass), \
+ INDICATOR_TYPE_MENU_ITEM))
+
+#define INDICATOR_MENU_ITEM_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS ((obj), \
+ INDICATOR_TYPE_MENU_ITEM, IndicatorMenuItemClass))
+
+typedef struct _IndicatorMenuItem IndicatorMenuItem;
+typedef struct _IndicatorMenuItemClass IndicatorMenuItemClass;
+typedef struct _IndicatorMenuItemPrivate IndicatorMenuItemPrivate;
+
+struct _IndicatorMenuItem
+{
+ GtkMenuItem parent;
+};
+
+struct _IndicatorMenuItemClass
+{
+ GtkMenuItemClass parent_class;
+};
+
+GType indicator_menu_item_get_type (void) G_GNUC_CONST;
+
+IndicatorMenuItem *indicator_menu_item_new (void);
+void indicator_menu_item_set_right (IndicatorMenuItem *self, const gchar *text);
+void indicator_menu_item_set_label (IndicatorMenuItem *self, const gchar *text);
+
+G_END_DECLS
+
+#endif
+