[gnome-panel/wip/muktupavels/more-api: 4/4] panel-addto-dialog: hide unavailable applets
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel/wip/muktupavels/more-api: 4/4] panel-addto-dialog: hide unavailable applets
- Date: Mon, 13 Apr 2020 23:00:50 +0000 (UTC)
commit a70a403afaabf4c8c788711953b8750cb09c2a51
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Tue Apr 14 01:54:27 2020 +0300
panel-addto-dialog: hide unavailable applets
gnome-panel/panel-addto-dialog.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnome-panel/panel-addto-dialog.c b/gnome-panel/panel-addto-dialog.c
index 1193be920..bd2d5d96f 100644
--- a/gnome-panel/panel-addto-dialog.c
+++ b/gnome-panel/panel-addto-dialog.c
@@ -302,8 +302,8 @@ panel_addto_query_applets (GSList *list)
icon = panel_applet_info_get_icon (info);
if (!name ||
- panel_lockdown_is_applet_disabled (panel_lockdown_get (),
- iid)) {
+ panel_lockdown_is_applet_disabled (panel_lockdown_get (), iid) ||
+ !panel_applets_manager_is_applet_available (iid, NULL)) {
continue;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]