summaryrefslogtreecommitdiffstats
path: root/src/Applet
diff options
context:
space:
mode:
Diffstat (limited to 'src/Applet')
-rw-r--r--src/Applet/Applet.cpp7
-rw-r--r--src/Applet/CCApplet.cpp8
-rw-r--r--src/Applet/CCApplet.h2
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, ...);