Removed some old code causing undefined behavior.

There were leftovers from previous menu version, where icon will be set for certain MenuItem. However, some of those items are removed causing values to be set outside array's bounds. Yuck!
This commit is contained in:
Sanel Zukan 2012-07-19 08:18:36 +00:00
parent a024e66550
commit 3ff0844756

View File

@ -241,9 +241,6 @@ void Desktop::init_internals(void) {
dmenu = new edelib::MenuButton(0, 0, 500, 0);
dmenu->menu(desktop_menu);
desktop_menu[1].image(edelib::IconLoader::get("folder", edelib::ICON_SIZE_TINY));
desktop_menu[6].image(edelib::IconLoader::get("edit-copy", edelib::ICON_SIZE_TINY));
desktop_menu[7].image(edelib::IconLoader::get("edit-paste", edelib::ICON_SIZE_TINY));
wallpaper = new Wallpaper(0, 0, w(), h());
end();