[gnome-panel] panel-addto-dialog: remove main menu object



commit 433cb050594368b3864fcff62dfdce04cace912b
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Thu Sep 13 19:44:01 2018 +0300

    panel-addto-dialog: remove main menu object
    
    Same functionality is provided by main-menu applet from menu module.

 gnome-panel/panel-addto-dialog.c | 19 -------------------
 1 file changed, 19 deletions(-)
---
diff --git a/gnome-panel/panel-addto-dialog.c b/gnome-panel/panel-addto-dialog.c
index 7be3053f4..b671361c4 100644
--- a/gnome-panel/panel-addto-dialog.c
+++ b/gnome-panel/panel-addto-dialog.c
@@ -126,30 +126,11 @@ panel_addto_applet_info_sort_func (PanelAddtoItemInfo *a,
        return g_utf8_collate (a->name, b->name);
 }
 
-static GSList *
-prepend_internal_applets (GSList *list)
-{
-       PanelAddtoItemInfo *internal;
-
-       internal = g_new0 (PanelAddtoItemInfo, 1);
-       internal->type = PANEL_ADDTO_MENU;
-       internal->name = g_strdup (_("Main Menu"));
-       internal->description = g_strdup (_("The main GNOME menu"));
-       internal->icon = g_themed_icon_new (PANEL_ICON_MAIN_MENU);
-       internal->action_type = PANEL_ACTION_NONE;
-       internal->iid = g_strdup ("MENU:MAIN");
-       list = g_slist_prepend (list, internal);
-
-       return list;
-}
-
 static GSList *
 panel_addto_prepend_internal_applets (GSList *list)
 {
        int i;
 
-       list = prepend_internal_applets (list);
-
        for (i = PANEL_ACTION_LOCK; i < PANEL_ACTION_LAST; i++) {
                PanelAddtoItemInfo *info;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]