diff options
author | lukefromdc <[email protected]> | 2017-10-12 01:36:15 -0400 |
---|---|---|
committer | lukefromdc <[email protected]> | 2017-10-12 01:36:15 -0400 |
commit | b4cd34f32436c33103bb98f8eb81cbef435ca1d9 (patch) | |
tree | ec5f0defdfc82d9afc7f4be8958f336f09e734c6 /src | |
parent | 3f6726b38662877946da803d4b8321f5aece6a35 (diff) | |
download | mate-polkit-b4cd34f32436c33103bb98f8eb81cbef435ca1d9.tar.bz2 mate-polkit-b4cd34f32436c33103bb98f8eb81cbef435ca1d9.tar.xz |
Fix reshow/hide icon with statusnotifier
Requires change to mate-panel to work, but without this change the mate-panel change only lets the icon show once
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -174,6 +174,10 @@ update_temporary_authorization_icon_real (void) app_indicator_set_status (app_indicator, APP_INDICATOR_STATUS_ACTIVE); } + else + /*Reshow icon from existing appindicator */ + app_indicator_set_status (app_indicator, + APP_INDICATOR_STATUS_ACTIVE); #else if (status_icon == NULL) @@ -198,10 +202,9 @@ update_temporary_authorization_icon_real (void) #ifdef HAVE_APPINDICATOR if (app_indicator != NULL) { + /* keep the app_indicator, hide the icon or it won't come back*/ app_indicator_set_status (app_indicator, APP_INDICATOR_STATUS_PASSIVE); - g_object_unref (app_indicator); - app_indicator = NULL; } #else if (status_icon != NULL) |