00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00032 #ifndef HN_APP_MENU_ITEM_H
00033 #define HN_APP_MENU_ITEM_H
00034
00035 #include <gtk/gtkimagemenuitem.h>
00036 #include "hn-wm-types.h"
00037
00038 G_BEGIN_DECLS
00039
00040 #define HN_TYPE_APP_MENU_ITEM (hn_app_menu_item_get_type ())
00041 #define HN_APP_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), HN_TYPE_APP_MENU_ITEM, HNAppMenuItem))
00042 #define HN_IS_APP_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), HN_TYPE_APP_MENU_ITEM))
00043 #define HN_APP_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), HN_TYPE_APP_MENU_ITEM, HNAppMenuItemClass))
00044 #define HN_IS_APP_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), HN_TYPE_APP_MENU_ITEM))
00045 #define HN_APP_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), HN_TYPE_APP_MENU_ITEM, HNAppMenuItemClass))
00046
00047 typedef struct _HNAppMenuItem HNAppMenuItem;
00048 typedef struct _HNAppMenuItemPrivate HNAppMenuItemPrivate;
00049 typedef struct _HNAppMenuItemClass HNAppMenuItemClass;
00050
00051 struct _HNAppMenuItem
00052 {
00053 GtkImageMenuItem parent_instance;
00054
00055 HNAppMenuItemPrivate *priv;
00056 };
00057
00058 struct _HNAppMenuItemClass
00059 {
00060 GtkImageMenuItemClass parent_class;
00061
00062 GdkPixbuf *close_button;
00063 GdkPixbuf *thumb_close_button;
00064 };
00065
00066 GType hn_app_menu_item_get_type (void) G_GNUC_CONST;
00067
00068 GtkWidget * hn_app_menu_item_new (HNEntryInfo *info,
00069 gboolean show_close,
00070 gboolean thumbable);
00071
00072 void hn_app_menu_item_set_entry_info (HNAppMenuItem *menuitem,
00073 HNEntryInfo *info);
00074 HNEntryInfo *hn_app_menu_item_get_entry_info (HNAppMenuItem *menuitem);
00075 void hn_app_menu_item_set_is_blinking (HNAppMenuItem *menuitem,
00076 gboolean is_blinking);
00077 gboolean hn_app_menu_item_get_is_blinking (HNAppMenuItem *menuitem);
00078
00079 G_END_DECLS
00080
00081 #endif