ui/motif/toolkit.c

changeset 24
06bceda81a03
parent 21
012418e7dc90
child 27
77b09bb52ca0
equal deleted inserted replaced
23:decc6bf584aa 24:06bceda81a03
31 31
32 #include "toolkit.h" 32 #include "toolkit.h"
33 #include "toolbar.h" 33 #include "toolbar.h"
34 #include "stock.h" 34 #include "stock.h"
35 #include "../common/document.h" 35 #include "../common/document.h"
36 #include "../common/properties.h"
36 37
37 static XtAppContext app; 38 static XtAppContext app;
38 static Display *display; 39 static Display *display;
39 static char *application_name; 40 static char *application_name;
40 41
58 display = XtOpenDisplay(app, NULL, appname, appname, NULL, 0, &argc, argv); 59 display = XtOpenDisplay(app, NULL, appname, appname, NULL, 0, &argc, argv);
59 60
60 uic_docmgr_init(); 61 uic_docmgr_init();
61 ui_toolbar_init(); 62 ui_toolbar_init();
62 ui_stock_init(); 63 ui_stock_init();
64
65 uic_load_app_properties();
63 } 66 }
64 67
65 Display* ui_get_display() { 68 Display* ui_get_display() {
66 return display; 69 return display;
67 } 70 }
74 void ui_main() { 77 void ui_main() {
75 XtAppMainLoop(app); 78 XtAppMainLoop(app);
76 if(appclose_fnc) { 79 if(appclose_fnc) {
77 appclose_fnc(NULL, appclose_udata); 80 appclose_fnc(NULL, appclose_udata);
78 } 81 }
82 uic_store_app_properties();
79 } 83 }
80 84
81 void ui_show(UiObject *obj) { 85 void ui_show(UiObject *obj) {
82 uic_check_group_widgets(obj->ctx); 86 uic_check_group_widgets(obj->ctx);
83 XtRealizeWidget(obj->widget); 87 XtRealizeWidget(obj->widget);

mercurial