[gnome-panel] panel-addto: filter out actions without icons



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]