Date:2014-01-19 23:07:54 (10 months 6 days ago)
Author:Paul Cercueil
Commit:8bb58f627062a93f51341d075d93378933235f1e
Message:Sort links once they have all been added to the menu

Files: src/gmenu2x.cpp (1 diff)
src/menu.cpp (1 diff)
src/menu.h (2 diffs)

Change Details

src/gmenu2x.cpp
394394    }
395395
396396    menu->skinUpdated();
397    menu->orderLinks();
397398
398399    menu->setSectionIndex(confInt["section"]);
399400    menu->setLinkIndex(confInt["link"]);
src/menu.cpp
9898    }
9999#endif
100100
101    orderLinks();
102
103101    btnContextMenu->setPosition(gmenu2x->resX - 38, gmenu2x->bottomBarIconY);
104102    btnContextMenu->setAction(std::bind(&GMenu2X::showContextMenu, gmenu2x));
105103}
src/menu.h
7575
7676    void readLinks();
7777    void freeLinks();
78    void orderLinks();
7978
8079    // Load all the sections of the given "sections" directory.
8180    void readSections(std::string parentDir);
...... 
123122    void deleteSelectedSection();
124123
125124    void skinUpdated();
125    void orderLinks();
126126
127127    // Layer implementation:
128128    virtual bool runAnimations();

Archive Download the corresponding diff file



interactive