summaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2017-10-12 01:25:56 -0400
committerraveit65 <[email protected]>2017-11-18 09:30:38 +0100
commit8dcfb668c104cf86097dcc6cd27f3a8024d4c22e (patch)
tree61f8caaaa1b24c617637a6c4246410b003c164bc /applets
parent86c64efc423448dfb3d069ba3b701bdae6c7db10 (diff)
downloadmate-panel-8dcfb668c104cf86097dcc6cd27f3a8024d4c22e.tar.bz2
mate-panel-8dcfb668c104cf86097dcc6cd27f3a8024d4c22e.tar.xz
status-notifier: hide mate-polkit icon if passive
This needs to be special cased, and requires a change in mate-polkit to work
Diffstat (limited to 'applets')
-rw-r--r--applets/notification_area/status-notifier/sn-item-v0.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/applets/notification_area/status-notifier/sn-item-v0.c b/applets/notification_area/status-notifier/sn-item-v0.c
index c994800f..cd0694a2 100644
--- a/applets/notification_area/status-notifier/sn-item-v0.c
+++ b/applets/notification_area/status-notifier/sn-item-v0.c
@@ -239,7 +239,7 @@ update (SnItemV0 *v0)
GtkImage *image;
SnTooltip *tip;
gint icon_size;
-
+ gboolean visible;
g_return_if_fail (SN_IS_ITEM_V0 (v0));
image = GTK_IMAGE (v0->image);
@@ -314,6 +314,12 @@ update (SnItemV0 *v0)
atk_object_set_name (accessible, v0->id);
/* TODO: hide "Passive" items with a setting? */
+ /*Special case mate-polkit*/
+ if (g_strcmp0 (v0->status, "password-dialog") != 0){
+ visible = g_strcmp0 (v0->status, "Passive") != 0;
+ gtk_widget_set_visible (GTK_WIDGET (v0), visible);
+ }
+ else
gtk_widget_set_visible (GTK_WIDGET (v0), TRUE);
}