version 1.61, 2017/08/21 09:06:02
|
version 1.62, 2017/08/23 09:29:15
|
Line 36 _XlibErrorHandler(Display *display, XErr
|
Line 36 _XlibErrorHandler(Display *display, XErr
|
return True; |
return True; |
} |
} |
|
|
|
static void |
|
_XtWarningHandler(String message) |
|
{ |
|
return; |
|
} |
|
|
void |
void |
encart(struct_processus *s_etat_processus, integer8 duree) |
encart(struct_processus *s_etat_processus, integer8 duree) |
{ |
{ |
Line 102 encart(struct_processus *s_etat_processu
|
Line 108 encart(struct_processus *s_etat_processu
|
|
|
XtAppContext app; |
XtAppContext app; |
|
|
|
XtErrorHandler old_message_handler; |
|
|
if (strstr(XmVERSION_STRING, "LessTif") != NULL) |
if (strstr(XmVERSION_STRING, "LessTif") != NULL) |
{ |
{ |
printf("Lesstif is broken, please consider an upgrade to OpenMotif.\n"); |
printf("Lesstif is broken, please consider an upgrade to OpenMotif.\n"); |
Line 118 encart(struct_processus *s_etat_processu
|
Line 126 encart(struct_processus *s_etat_processu
|
if (display != NULL) |
if (display != NULL) |
{ |
{ |
objet_principal = XtVaOpenApplication(&app, "rpl", |
objet_principal = XtVaOpenApplication(&app, "rpl", |
NULL, 0, &argc, argv, NULL, topLevelShellWidgetClass, NULL); |
NULL, 0, &argc, argv, NULL, overrideShellWidgetClass, NULL); |
XSynchronize(XtDisplay(objet_principal), False); |
XSynchronize(XtDisplay(objet_principal), False); |
|
|
|
old_message_handler = XtAppSetWarningHandler(app, _XtWarningHandler); |
|
|
form = XtVaCreateManagedWidget("rplSplashScreen", |
form = XtVaCreateManagedWidget("rplSplashScreen", |
xmFormWidgetClass, objet_principal, |
xmFormWidgetClass, objet_principal, |
NULL); |
NULL); |
Line 260 encart(struct_processus *s_etat_processu
|
Line 270 encart(struct_processus *s_etat_processu
|
offset_y = 0; |
offset_y = 0; |
} |
} |
|
|
XCloseDisplay(display); |
|
|
|
#if 0 |
#if 0 |
XtRealizeWidget(objet_principal); |
XtRealizeWidget(objet_principal); |
|
|
Line 342 encart(struct_processus *s_etat_processu
|
Line 350 encart(struct_processus *s_etat_processu
|
nanosleep(&attente, NULL); |
nanosleep(&attente, NULL); |
} |
} |
|
|
|
XCloseDisplay(display); |
|
XtAppSetWarningHandler(app, old_message_handler); |
XtDestroyApplicationContext(app); |
XtDestroyApplicationContext(app); |
} |
} |
# endif |
# endif |