wmail: use pkg-config for X11 and dockapp.
[dockapps.git] / wmmenu / wmmenu.c
blobd810d7e97b0ca9cb2bb4009a38dfdf910debea45
1 #include <stdio.h>
2 #include <stdlib.h>
4 #include <libdockapp/dockapp.h>
6 #include "options.h"
7 #include "menu.h"
8 #include "version.h"
9 #include "pixmaps.h"
10 #include "buttonbar.h"
11 #include "events.h"
13 extern int main (int argc, char ** argv)
15 Options_ParseDefaults () ;
16 Options_Parse (argc, argv) ;
17 Menu_LoadFromFile (MenuName) ;
19 DAParseArguments (Options_Argc, Options_Argv, NULL, 0,
20 "wmmenu", VERSION) ;
21 DAOpenDisplay (NULL, argc, argv) ;
22 DACreateIcon((char*)Menu_GetTitle (), 48, 48, argc, argv);
24 Pixmaps_LoadMenu () ;
25 Pixmaps_LoadTile () ;
26 /* needs tile to be loaded before to have autoscale work */
27 Pixmaps_LoadHighlight () ;
28 /* bar build needs highlight mask and menu icons */
29 ButtonBar_Build () ;
30 Events_SetCallbacks () ;
32 DAShow () ;
33 Events_Loop () ;
35 return EXIT_SUCCESS ;