diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-11-16 10:08:03 +0100 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-11-16 10:08:03 +0100 |
commit | b497ec740fa242d71d9c5bb2b168707ac13b001b (patch) | |
tree | 2cb0d01208a09ace9d50268aee25b9f6b3ef58f7 /src/Applet/CCApplet.h | |
parent | c5f8a36751a164937b6d70c5e0ef2e228213848f (diff) | |
download | abrt-b497ec740fa242d71d9c5bb2b168707ac13b001b.tar.gz abrt-b497ec740fa242d71d9c5bb2b168707ac13b001b.tar.xz abrt-b497ec740fa242d71d9c5bb2b168707ac13b001b.zip |
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
Diffstat (limited to 'src/Applet/CCApplet.h')
-rw-r--r-- | src/Applet/CCApplet.h | 20 |
1 files changed, 20 insertions, 0 deletions
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<int, std::string> 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 |