From 9fefdaeed15039877f525d2c6fae3e02318c4234 Mon Sep 17 00:00:00 2001 From: Jiri Moskovcak Date: Sun, 15 Nov 2009 19:39:28 +0100 Subject: 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 --- src/Applet/Applet.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/Applet/Applet.cpp') diff --git a/src/Applet/Applet.cpp b/src/Applet/Applet.cpp index 2eed556..ab8640a 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) -- cgit From 344a3dcc7a22e0e5dd74fe0bfb0483220c3dc7ad Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 18 Nov 2009 14:00:56 +0100 Subject: whitespace cleanups Signed-off-by: Denys Vlasenko --- src/Applet/Applet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Applet/Applet.cpp') diff --git a/src/Applet/Applet.cpp b/src/Applet/Applet.cpp index ab8640a..46278c6 100644 --- a/src/Applet/Applet.cpp +++ b/src/Applet/Applet.cpp @@ -201,7 +201,7 @@ int main(int argc, char** argv) default: error_msg_and_die( "Usage: abrt-applet [-v]\n" - "\nOptions:" + "\nOptions:" "\n\t-v\tVerbose" ); } -- cgit