/[graveman]/graveman/current/src/matos.c
ViewVC logotype

Diff of /graveman/current/src/matos.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.22 by scresto, Mon Mar 21 00:55:22 2005 UTC revision 1.23 by scresto, Tue Mar 22 00:27:13 2005 UTC
# Line 600  gboolean callback_waiting_for_user(gpoin Line 600  gboolean callback_waiting_for_user(gpoin
600    gchar *Ldrive;    gchar *Ldrive;
601    gint *Lrequis;    gint *Lrequis;
602    gint Lmedialu;    gint Lmedialu;
603    gboolean Lstatusmedia;    gboolean Lstatusmedia = FALSE;
604    gint i;    gint i;
605    gboolean LnewCont = FALSE;    gboolean LnewCont = FALSE;
606      gboolean *Linitdisp = (gboolean *) sc_grave_get_data(Lg, "initdisp");
607        
608    for (i=1; 1; i++) {    for (i=1; 1; i++) {
609      Ldrive = sc_grave_get_datav(Lg, "device%d", i);      Ldrive = sc_grave_get_datav(Lg, "device%d", i);
# Line 611  gboolean callback_waiting_for_user(gpoin Line 612  gboolean callback_waiting_for_user(gpoin
612      Lrequis = (gint *) sc_grave_get_datav(Lg, "devicerequis%d", i);      Lrequis = (gint *) sc_grave_get_datav(Lg, "devicerequis%d", i);
613      Ldetect = (gint *) sc_grave_get_datav(Lg, "detect%d", i);      Ldetect = (gint *) sc_grave_get_datav(Lg, "detect%d", i);
614      Lmedialu = 0;      Lmedialu = 0;
615    
616        if (Linitdisp && *Linitdisp) {
617          set_waitwindow_title(Lstatusmedia, *Lrequis, i, Lg);
618          gtk_widget_show(GTK_WIDGET(sc_grave_get_data(Lg, "window")));
619          gdk_flush ();
620          *Linitdisp = FALSE;
621        }
622            
623       printf("la DVD ?!\n");
624      if (*Lrequis & _MEDIA_IS_DVD) {      if (*Lrequis & _MEDIA_IS_DVD) {
625        Lmedialu += get_dvdinfo(Ldrive, NULL);        Lmedialu += get_dvdinfo(Ldrive, NULL);
626      }      }
627    
628       printf("la CD ?!\n");
629      if (*Lrequis & _MEDIA_IS_CD) {      if (*Lrequis & _MEDIA_IS_CD) {
630        Lmedialu += get_cdinfo(Ldrive, NULL);        Lmedialu += get_cdinfo(Ldrive, NULL);
631      }      }
# Line 630  gboolean callback_waiting_for_user(gpoin Line 640  gboolean callback_waiting_for_user(gpoin
640      if (Lstatusmedia) LnewCont = TRUE;      if (Lstatusmedia) LnewCont = TRUE;
641            
642      set_waitwindow_title(Lstatusmedia, *Lrequis, i, Lg);      set_waitwindow_title(Lstatusmedia, *Lrequis, i, Lg);
643        gdk_flush ();
644    }    }
645    
646    if (LnewCont == FALSE) *Lcont = 0;    if (LnewCont == FALSE) *Lcont = 0;
# Line 647  gboolean waiting_for_user(gchar *Atitle, Line 658  gboolean waiting_for_user(gchar *Atitle,
658    gchar *Lident2 = NULL, *Ldevicetitle2 = NULL;    gchar *Lident2 = NULL, *Ldevicetitle2 = NULL;
659    gint Lcont = 2;    gint Lcont = 2;
660    gboolean Labort = FALSE;    gboolean Labort = FALSE;
661      gboolean Linit = TRUE;
662    guint Ltimeout = 0;    guint Ltimeout = 0;
663    GtkTreeIter Liter;    GtkTreeIter Liter;
664        
# Line 677  gboolean waiting_for_user(gchar *Atitle, Line 689  gboolean waiting_for_user(gchar *Atitle,
689    gtk_window_set_transient_for(GTK_WINDOW(Lwindow), GTK_WINDOW(Lparent));    gtk_window_set_transient_for(GTK_WINDOW(Lwindow), GTK_WINDOW(Lparent));
690    gtk_window_set_position(GTK_WINDOW(Lwindow), GTK_WIN_POS_CENTER_ALWAYS);    gtk_window_set_position(GTK_WINDOW(Lwindow), GTK_WIN_POS_CENTER_ALWAYS);
691    
   gtk_widget_show(Lwindow);  
692    
693      printf("ici man !\n");
694    /* on appele une fois le callback pour verifier que l'utilisateur n'ai pas    /* on appele une fois le callback pour verifier que l'utilisateur n'ai pas
695     * deja inseré le bon cd qui va bien */     * deja inseré le bon cd qui va bien */
696      sc_grave_set_data(Lwaitg, &Linit, "initdisp");
697    callback_waiting_for_user(Lwaitg);    callback_waiting_for_user(Lwaitg);
698      sc_grave_del_data(Lwaitg, "initdisp");
699    printf("la !!!! !\n");
700    
701    if (Lcont == 2 && Labort == FALSE) {    if (Lcont == 2 && Labort == FALSE) {
702      /* apparement non, on affiche la fenetre d'attente */      /* apparement non, on affiche la fenetre d'attente */

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26