~3v1n0/indicator-appmenu/all-menus-mode

« back to all changes in this revision

Viewing changes to src/indicator-appmenu.c

  • Committer: Marco Trevisan (Treviño)
  • Date: 2015-03-02 14:47:00 UTC
  • Revision ID: mail@3v1n0.net-20150302144700-3e36l7d8818xe6o1
IndicatorAppmenu: ensure we emit "entry-removed" signal for entries of a deleted window

Show diffs side-by-side

added added

removed removed

Lines of Context:
1141
1141
                switch_default_app(iapp, NULL, NULL);
1142
1142
        }
1143
1143
 
 
1144
        if (iapp->mode == MODE_UNITY_ALL_MENUS) {
 
1145
                GList * entries, * l;
 
1146
                entries = window_menu_get_entries(wm);
 
1147
                for (l = entries; l; l = l->next) {
 
1148
                        window_entry_removed(wm, l->data, iapp);
 
1149
                }
 
1150
                g_list_free(entries);
 
1151
        }
 
1152
 
1144
1153
        g_object_unref(wm);
1145
1154
}
1146
1155