ui/motif/toolkit.c

changeset 3
c1a75454b444
parent 1
eb5269000bc8
child 21
012418e7dc90
equal deleted inserted replaced
2:eeb50c534497 3:c1a75454b444
28 28
29 #include <stdio.h> 29 #include <stdio.h>
30 #include <stdlib.h> 30 #include <stdlib.h>
31 31
32 #include "toolkit.h" 32 #include "toolkit.h"
33 #include "toolbar.h"
34 #include "stock.h"
33 #include "../common/document.h" 35 #include "../common/document.h"
34 36
35 static XtAppContext app; 37 static XtAppContext app;
36 static Display *display; 38 static Display *display;
37 static char *application_name; 39 static char *application_name;
54 app = XtCreateApplicationContext(); 56 app = XtCreateApplicationContext();
55 57
56 display = XtOpenDisplay(app, NULL, appname, appname, NULL, 0, &argc, argv); 58 display = XtOpenDisplay(app, NULL, appname, appname, NULL, 0, &argc, argv);
57 59
58 uic_docmgr_init(); 60 uic_docmgr_init();
61 ui_toolbar_init();
62 ui_stock_init();
59 } 63 }
60 64
61 Display* ui_get_display() { 65 Display* ui_get_display() {
62 return display; 66 return display;
63 } 67 }

mercurial