From b497ec740fa242d71d9c5bb2b168707ac13b001b Mon Sep 17 00:00:00 2001 From: Jiri Moskovcak Date: Mon, 16 Nov 2009 10:08:03 +0100 Subject: APPLET: changed icon from default gtk-warning to abrt specific, add animation - there were complaints about abrt using standard warning icon, which is confusing, so I changed it to use abrt spefic icon and made it move, to attract user attention --- src/Applet/CCApplet.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/Applet/CCApplet.h') diff --git a/src/Applet/CCApplet.h b/src/Applet/CCApplet.h index 3ae8cff9..e13c1d92 100644 --- a/src/Applet/CCApplet.h +++ b/src/Applet/CCApplet.h @@ -39,6 +39,22 @@ class CApplet NotifyNotification *m_pNotification; // std::map m_mapEvents; bool m_bDaemonRunning; + GtkStatusIcon *tray_icon; + int animation_stage; + guint animator; + + enum ICON_STAGES + { + ICON_DEFAULT, + ICON_STAGE1, + ICON_STAGE2, + ICON_STAGE3, + ICON_STAGE4, + ICON_STAGE5, + /* this must be always the last */ + ICON_STAGE_LAST + } icon_stages; + GdkPixbuf *icon_stages_buff[ICON_STAGE_LAST]; public: CApplet(); @@ -67,6 +83,10 @@ class CApplet gpointer user_data); static void onHide_cb(GtkMenuItem *menuitem, gpointer applet); static void onAbout_cb(GtkMenuItem *menuitem, gpointer applet); + static gboolean update_icon(void *data); + void animate_icon(); + void stop_animate_icon(); + void load_icons(); }; #endif -- cgit