ui/motif/toolkit.c

changeset 46
4a5e0b9b6992
parent 36
e4198fc2ead4
child 52
25e5390cce41
equal deleted inserted replaced
45:cfeb2d5f1332 46:4a5e0b9b6992
49 static int is_toplevel_realized = 0; 49 static int is_toplevel_realized = 0;
50 50
51 int event_pipe[2]; 51 int event_pipe[2];
52 52
53 static String fallback[] = { 53 static String fallback[] = {
54 "*fontList: -dt-interface system-medium-r-normal-s*utf*:", 54 //"*fontList: -dt-interface system-medium-r-normal-s*utf*:",
55 "*renderTable: rt",
56 "*rt*fontType: FONT_IS_FONTSET",
57 "*rt*fontName: -dt-interface system-medium-r-normal-s*utf*:,"
58 "-misc-liberation sans-medium-r-normal--0-0-0-0-p-0-iso8859-1,"
59 "-misc-liberation sans-medium-r-normal--0-0-0-0-p-0-iso8859-10,"
60 "-misc-liberation sans-medium-r-normal--0-0-0-0-p-0-iso8859-15,"
61 "-misc-liberation sans-medium-r-normal--0-0-0-0-p-0-iso8859-2,"
62 "-misc-liberation sans-medium-r-normal--0-0-0-0-p-0-iso8859-3,"
63 "-misc-liberation sans-medium-r-normal--0-0-0-0-p-0-iso8859-4,"
64 "-misc-liberation sans-medium-r-normal--0-0-0-0-p-0-iso8859-5,"
65 "-misc-liberation sans-medium-r-normal--0-0-0-0-p-0-iso8859-9,"
66 "-misc-liberation sans-medium-r-normal--0-0-0-0-p-0-koi8-e,"
67 "-misc-liberation sans-medium-r-normal--0-0-0-0-p-0-koi8-r,"
68 "-misc-liberation sans-medium-r-normal--0-0-0-0-p-0-koi8-ru,"
69 "-misc-liberation sans-medium-r-normal--0-0-0-0-p-0-koi8-u,"
70 "-misc-liberation sans-medium-r-normal--0-0-0-0-p-0-koi8-uni,"
71 "-misc-fixed-medium-r-normal--14-130-75-75-c-140-jisx0208",
72 "*rt*fontSize: 10",
55 NULL 73 NULL
56 }; 74 };
57 75
58 void input_proc(XtPointer data, int *source, XtInputId *iid) { 76 void input_proc(XtPointer data, int *source, XtInputId *iid) {
59 void *ptr; 77 void *ptr;
64 application_name = appname; 82 application_name = appname;
65 83
66 XtToolkitInitialize(); 84 XtToolkitInitialize();
67 XtSetLanguageProc(NULL, NULL, NULL); 85 XtSetLanguageProc(NULL, NULL, NULL);
68 app = XtCreateApplicationContext(); 86 app = XtCreateApplicationContext();
87 XtAppSetFallbackResources(app, fallback);
69 88
70 display = XtOpenDisplay(app, NULL, appname, appname, NULL, 0, &argc, argv); 89 display = XtOpenDisplay(app, NULL, appname, appname, NULL, 0, &argc, argv);
71 char **missing = NULL; 90 char **missing = NULL;
72 int nm = 0; 91 int nm = 0;
73 char *def = NULL; 92 char *def = NULL;

mercurial