/* * Copyright 2012 Canonical Ltd. * * Authors: Lars Uebernickel * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ #ifndef INDICATOR_MENU_ITEM_H #define INDICATOR_MENU_ITEM_H #include 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; IndicatorMenuItemPrivate *priv; }; struct _IndicatorMenuItemClass { GtkMenuItemClass parent_class; }; GType indicator_menu_item_get_type (void) G_GNUC_CONST; IndicatorMenuItem *indicator_menu_item_new (void); const gchar * indicator_menu_item_get_label (IndicatorMenuItem *self); void indicator_menu_item_set_label (IndicatorMenuItem *self, const gchar *text); const gchar * indicator_menu_item_get_right (IndicatorMenuItem *self); void indicator_menu_item_set_right (IndicatorMenuItem *self, const gchar *text); gboolean indicator_menu_item_get_right_is_lozenge (IndicatorMenuItem *self); void indicator_menu_item_set_right_is_lozenge (IndicatorMenuItem *self, gboolean is_lozenge); const gchar * indicator_menu_item_get_icon_name (IndicatorMenuItem *self); void indicator_menu_item_set_icon (IndicatorMenuItem *self, GdkPixbuf *icon); GdkPixbuf * indicator_menu_item_get_icon (IndicatorMenuItem *self); void indicator_menu_item_set_icon_name (IndicatorMenuItem *self, const gchar *name); G_END_DECLS #endif