2015-01-22 23:00:43 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
2015-10-21 11:10:09 +00:00
|
|
|
#include <libdockapp/dockapp.h>
|
2015-01-22 23:00:43 +00:00
|
|
|
|
|
|
|
#include "options.h"
|
|
|
|
#include "menu.h"
|
|
|
|
#include "version.h"
|
|
|
|
#include "pixmaps.h"
|
|
|
|
#include "buttonbar.h"
|
|
|
|
#include "events.h"
|
|
|
|
|
|
|
|
extern int main (int argc, char ** argv)
|
|
|
|
{
|
|
|
|
Options_ParseDefaults () ;
|
|
|
|
Options_Parse (argc, argv) ;
|
|
|
|
Menu_LoadFromFile (MenuName) ;
|
|
|
|
|
|
|
|
DAParseArguments (Options_Argc, Options_Argv, NULL, 0,
|
|
|
|
"wmmenu", VERSION) ;
|
2015-01-24 18:05:38 +00:00
|
|
|
DAOpenDisplay (NULL, argc, argv) ;
|
|
|
|
DACreateIcon((char*)Menu_GetTitle (), 48, 48, argc, argv);
|
2015-01-22 23:00:43 +00:00
|
|
|
|
|
|
|
Pixmaps_LoadMenu () ;
|
|
|
|
Pixmaps_LoadTile () ;
|
|
|
|
/* needs tile to be loaded before to have autoscale work */
|
|
|
|
Pixmaps_LoadHighlight () ;
|
|
|
|
/* bar build needs highlight mask and menu icons */
|
|
|
|
ButtonBar_Build () ;
|
|
|
|
Events_SetCallbacks () ;
|
|
|
|
|
|
|
|
DAShow () ;
|
|
|
|
Events_Loop () ;
|
|
|
|
|
|
|
|
return EXIT_SUCCESS ;
|
|
|
|
}
|
|
|
|
|