[gnome-panel] panel-addto: filter out actions without icons
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] panel-addto: filter out actions without icons
- Date: Tue, 24 Mar 2015 14:58:02 +0000 (UTC)
commit 551cac1ea3f591e917e16474079f675ceac5e89a
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Mon Mar 23 18:42:49 2015 +0200
panel-addto: filter out actions without icons
gnome-panel/panel-addto.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gnome-panel/panel-addto.c b/gnome-panel/panel-addto.c
index ff7a5ad..aeada98 100644
--- a/gnome-panel/panel-addto.c
+++ b/gnome-panel/panel-addto.c
@@ -191,6 +191,10 @@ panel_addto_prepend_internal_applets (GSList *list)
for (i = PANEL_ACTION_LOCK; i < PANEL_ACTION_LAST; i++) {
PanelAddtoItemInfo *info;
+ if (i == PANEL_ACTION_REBOOT || i == PANEL_ACTION_HYBRID_SLEEP
+ || i == PANEL_ACTION_SUSPEND || i == PANEL_ACTION_HIBERNATE)
+ continue;
+
if (panel_action_get_is_disabled (i))
continue;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]