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_BUTTON_H
00033 #define HN_APP_BUTTON_H
00034
00035 #include <gdk-pixbuf/gdk-pixbuf.h>
00036 #include <gtk/gtktogglebutton.h>
00037
00038 #include "hn-wm-types.h"
00039
00040 #define APP_BUTTON_THUMBABLE 8
00041 #define APP_BUTTON_NORMAL 1
00042
00043 G_BEGIN_DECLS
00044
00045 #define HN_TYPE_APP_BUTTON (hn_app_button_get_type ())
00046 #define HN_APP_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), HN_TYPE_APP_BUTTON, HNAppButton))
00047 #define HN_IS_APP_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), HN_TYPE_APP_BUTTON))
00048 #define HN_APP_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), HN_TYPE_APP_BUTTON, HNAppButtonClass))
00049 #define HN_IS_APP_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), HN_TYPE_APP_BUTTON))
00050 #define HN_APP_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), HN_TYPE_APP_BUTTON, HNAppButtonClass))
00051
00052 typedef struct _HNAppButton HNAppButton;
00053 typedef struct _HNAppButtonPrivate HNAppButtonPrivate;
00054 typedef struct _HNAppButtonClass HNAppButtonClass;
00055
00056 struct _HNAppButton
00057 {
00058 GtkToggleButton parent_instance;
00059
00060 GSList *group;
00061
00062 HNAppButtonPrivate *priv;
00063 };
00064
00065 struct _HNAppButtonClass
00066 {
00067 GtkToggleButtonClass parent_class;
00068 };
00069
00070 GType hn_app_button_get_type (void) G_GNUC_CONST;
00071
00072 GtkWidget * hn_app_button_new (GSList *group);
00073 void hn_app_button_set_group (HNAppButton *button,
00074 GSList *group);
00075 GSList * hn_app_button_get_group (HNAppButton *button);
00076
00077 void hn_app_button_set_icon_from_pixbuf (HNAppButton *button,
00078 GdkPixbuf *pixbuf);
00079 GdkPixbuf * hn_app_button_get_pixbuf_from_icon (HNAppButton *button);
00080 HNEntryInfo *hn_app_button_get_entry_info (HNAppButton *button);
00081 void hn_app_button_set_entry_info (HNAppButton *button,
00082 HNEntryInfo *info);
00083 gboolean hn_app_button_get_is_blinking (HNAppButton *button);
00084 void hn_app_button_set_is_blinking (HNAppButton *button,
00085 gboolean is_blinking);
00086 void hn_app_button_force_update_icon (HNAppButton *button);
00087 void hn_app_button_make_active (HNAppButton *button);
00088 G_END_DECLS
00089
00090 #endif