diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-11-15 19:39:28 +0100 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-11-15 19:39:28 +0100 |
commit | 9fefdaeed15039877f525d2c6fae3e02318c4234 (patch) | |
tree | a0f8a38a503fccfbbf5886f371caed8a79fa20ae /src/Applet | |
parent | 54d25773bbae2425c5d1b8fc7bd827d941a6a011 (diff) | |
download | abrt-9fefdaeed15039877f525d2c6fae3e02318c4234.tar.gz abrt-9fefdaeed15039877f525d2c6fae3e02318c4234.tar.xz abrt-9fefdaeed15039877f525d2c6fae3e02318c4234.zip |
don't show icon on abrtd start/stop rhbz#537630
- this feature would show the icon even after abrt update,
which would show the icon and thus might confuse user with
the warning sign
Diffstat (limited to 'src/Applet')
-rw-r--r-- | src/Applet/Applet.cpp | 7 | ||||
-rw-r--r-- | src/Applet/CCApplet.cpp | 8 | ||||
-rw-r--r-- | src/Applet/CCApplet.h | 2 |
3 files changed, 8 insertions, 9 deletions
diff --git a/src/Applet/Applet.cpp b/src/Applet/Applet.cpp index 2eed556a..ab8640a2 100644 --- a/src/Applet/Applet.cpp +++ b/src/Applet/Applet.cpp @@ -134,10 +134,9 @@ static void NameOwnerChanged(DBusMessage* signal) return; } - if (new_owner[0]) - applet->Enable(_("ABRT service has been started")); - else - applet->Disable(_("ABRT service is not running")); +// hide icon if it's visible - as NM and don't show it, if it's not + if(!new_owner[0]) + applet->HideIcon(); } static DBusHandlerResult handle_message(DBusConnection* conn, DBusMessage* msg, void* user_data) diff --git a/src/Applet/CCApplet.cpp b/src/Applet/CCApplet.cpp index bae0cf8b..c2300510 100644 --- a/src/Applet/CCApplet.cpp +++ b/src/Applet/CCApplet.cpp @@ -243,10 +243,10 @@ void CApplet::onAbout_cb(GtkMenuItem *menuitem, gpointer dialog) gtk_widget_hide(GTK_WIDGET(dialog)); } -//void CApplet::HideIcon() -//{ -// gtk_status_icon_set_visible(m_pStatusIcon, false); -//} +void CApplet::HideIcon() +{ + gtk_status_icon_set_visible(m_pStatusIcon, false); +} void CApplet::Disable(const char *reason) { diff --git a/src/Applet/CCApplet.h b/src/Applet/CCApplet.h index 5c42c36c..3ae8cff9 100644 --- a/src/Applet/CCApplet.h +++ b/src/Applet/CCApplet.h @@ -44,7 +44,7 @@ class CApplet CApplet(); ~CApplet(); void ShowIcon(); -// void HideIcon(); + void HideIcon(); //void DisableIcon(); // void BlinkIcon(bool pBlink); void SetIconTooltip(const char *format, ...); |