Diff for /rpl/src/encart.c between versions 1.64 and 1.65

version 1.64, 2017/08/24 06:59:03 version 1.65, 2017/08/24 07:07:38
Line 166  encart(struct_processus *s_etat_processu Line 166  encart(struct_processus *s_etat_processu
                 XmNbackground, &couleur_arriere_plan,                  XmNbackground, &couleur_arriere_plan,
                 NULL);                  NULL);
   
   uprintf("0\n");
         if ((erreur = XpmCreatePixmapFromData(XtDisplay(form),          if ((erreur = XpmCreatePixmapFromData(XtDisplay(form),
                 DefaultRootWindow(XtDisplay(form)), rpl_xpm,                  DefaultRootWindow(XtDisplay(form)), rpl_xpm,
                 &pixmap_rpl, &pixmap_rpl_masque, NULL)) != 0)                  &pixmap_rpl, &pixmap_rpl_masque, NULL)) != 0)
Line 195  encart(struct_processus *s_etat_processu Line 196  encart(struct_processus *s_etat_processu
                 XmNmwmFunctions, fonctions,                  XmNmwmFunctions, fonctions,
                 NULL);                  NULL);
   
   uprintf("1\n");
         if (XineramaIsActive(display) == True)          if (XineramaIsActive(display) == True)
         {          {
             // Récupération de la localisation des différents écrans              // Récupération de la localisation des différents écrans
Line 287  encart(struct_processus *s_etat_processu Line 289  encart(struct_processus *s_etat_processu
             offset_x = 0;              offset_x = 0;
             offset_y = 0;              offset_y = 0;
         }          }
   uprintf("2\n");
   
 #if 0  #if 0
         XtRealizeWidget(objet_principal);          XtRealizeWidget(objet_principal);
Line 313  encart(struct_processus *s_etat_processu Line 316  encart(struct_processus *s_etat_processu
   
         XtRealizeWidget(objet_principal);          XtRealizeWidget(objet_principal);
 #endif  #endif
   uprintf("3\n");
   
         XFlush(XtDisplay(form));          XFlush(XtDisplay(form));
   uprintf("3a\n");
   
         attente.tv_sec = 0;          attente.tv_sec = 0;
         attente.tv_nsec = 1000;          attente.tv_nsec = 1000;
Line 323  encart(struct_processus *s_etat_processu Line 328  encart(struct_processus *s_etat_processu
   
         do          do
         {          {
   uprintf("3b\n");
             if (XtAppPending(app) != 0)              if (XtAppPending(app) != 0)
             {              {
   uprintf("3c\n");
                 XtAppNextEvent(app, &evenement);                  XtAppNextEvent(app, &evenement);
   uprintf("3d\n");
                 XtDispatchEvent(&evenement);                  XtDispatchEvent(&evenement);
   uprintf("3e\n");
             }              }
   uprintf("3f\n");
   
             nanosleep(&attente, NULL);              nanosleep(&attente, NULL);
             gettimeofday(&horodatage_final, NULL);              gettimeofday(&horodatage_final, NULL);
Line 346  encart(struct_processus *s_etat_processu Line 356  encart(struct_processus *s_etat_processu
                 + ((double) temps_ecoule.tv_sec))                  + ((double) temps_ecoule.tv_sec))
                 < (((double) duree) / ((double) 1000000)));                  < (((double) duree) / ((double) 1000000)));
   
   uprintf("4\n");
         XtUnrealizeWidget(objet_principal);          XtUnrealizeWidget(objet_principal);
   uprintf("5\n");
         XtDestroyWidget(pixmap);  
         XtDestroyWidget(cadre);  
         XtDestroyWidget(form);  
         XtDestroyWidget(objet_principal);  
   
         while(XtAppPending(app) == 0)          while(XtAppPending(app) == 0)
         {          {
Line 365  encart(struct_processus *s_etat_processu Line 372  encart(struct_processus *s_etat_processu
             nanosleep(&attente, NULL);              nanosleep(&attente, NULL);
         }          }
   
           XtDestroyWidget(pixmap);
           XtDestroyWidget(cadre);
           XtDestroyWidget(form);
           XtDestroyWidget(objet_principal);
   
   uprintf("6\n");
         XmDestroyPixmap(XtScreen(form), pixmap_rpl);          XmDestroyPixmap(XtScreen(form), pixmap_rpl);
         XmDestroyPixmap(XtScreen(form), pixmap_rpl_masque);          XmDestroyPixmap(XtScreen(form), pixmap_rpl_masque);
   
         XCloseDisplay(display);          XCloseDisplay(display);
         XtAppSetWarningHandler(app, old_message_handler);          XtAppSetWarningHandler(app, old_message_handler);
         XtDestroyApplicationContext(app);          XtDestroyApplicationContext(app);
   uprintf("7\n");
     }      }
 #   endif  #   endif
   

Removed from v.1.64  
changed lines
  Added in v.1.65


CVSweb interface <joel.bertrand@systella.fr>