/[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.19 by scresto, Wed Mar 2 00:19:58 2005 UTC revision 1.20 by scresto, Fri Mar 4 01:16:38 2005 UTC
# Line 570  void set_waitwindow_title(gboolean Ainse Line 570  void set_waitwindow_title(gboolean Ainse
570    if (*Lcd && (Atypecd & _MEDIA_IS_DVD)) {    if (*Lcd && (Atypecd & _MEDIA_IS_DVD)) {
571      strncat(Lcd, _(" or "), sizeof(Lcd)-1);      strncat(Lcd, _(" or "), sizeof(Lcd)-1);
572    }    }
573    if (Atypecd & _MEDIA_DVDR) {    if (Atypecd & _MEDIA_DVDRew) {
574        g_snprintf(Lcd, sizeof(Lcd)-1, _("a DVDR/RW"));
575      } else if (Atypecd & _MEDIA_DVDR) {
576      g_snprintf(Lcd, sizeof(Lcd)-1, _("a DVDR"));      g_snprintf(Lcd, sizeof(Lcd)-1, _("a DVDR"));
577    } else if ((Atypecd & _MEDIA_DVDPRW) || (Atypecd & _MEDIA_DVDMRW)) {    } else if ((Atypecd & _MEDIA_DVDPRW) || (Atypecd & _MEDIA_DVDMRW)) {
578      g_snprintf(Lcd, sizeof(Lcd)-1, _("a DVDRW"));      g_snprintf(Lcd, sizeof(Lcd)-1, _("a DVDRW"));
# Line 581  void set_waitwindow_title(gboolean Ainse Line 583  void set_waitwindow_title(gboolean Ainse
583    if (Ainsert) {    if (Ainsert) {
584      g_snprintf(Ltitle, sizeof(Ltitle)-1, _("Please insert %s in drive %s to continue..."), Lcd, Ldrivelib);      g_snprintf(Ltitle, sizeof(Ltitle)-1, _("Please insert %s in drive %s to continue..."), Lcd, Ldrivelib);
585    } else {    } else {
586      g_snprintf(Ltitle, sizeof(Ltitle)-1, _("Ok there is a %s in drive %s."), Lcd, Ldrivelib);      g_snprintf(Ltitle, sizeof(Ltitle)-1, _("Ok there is %s in drive %s."), Lcd, Ldrivelib);
587    }    }
588    gtk_label_set_text(Llabel, Ltitle);    gtk_label_set_text(Llabel, Ltitle);
589  }  }
# Line 664  gboolean waiting_for_user(Tgrave *Ag, gi Line 666  gboolean waiting_for_user(Tgrave *Ag, gi
666    sc_grave_set_data(Lwaitg, &Lcont, "cont");    sc_grave_set_data(Lwaitg, &Lcont, "cont");
667    sc_grave_set_data(Lwaitg, &Labort, "gabort");    sc_grave_set_data(Lwaitg, &Labort, "gabort");
668        
669    if (Ldriveident1) {    if (Ldriveident1 && *Ldriveident1 && Atypecd1 != _MEDIA_NONE) {
670      GtkComboBox *Lcombob1 = GTK_COMBO_BOX(sc_grave_get_widget(Ag, Ldriveident1));      GtkComboBox *Lcombob1 = GTK_COMBO_BOX(sc_grave_get_widget(Ag, Ldriveident1));
671      GtkTreeModel *Lmodelb1 = gtk_combo_box_get_model(Lcombob1);      GtkTreeModel *Lmodelb1 = gtk_combo_box_get_model(Lcombob1);
672      if (gtk_combo_box_get_active_iter(Lcombob1, &Liter)) {      if (gtk_combo_box_get_active_iter(Lcombob1, &Liter)) {
# Line 678  gboolean waiting_for_user(Tgrave *Ag, gi Line 680  gboolean waiting_for_user(Tgrave *Ag, gi
680        set_waitwindow_title(TRUE, Atypecd1, 1, Lwaitg);        set_waitwindow_title(TRUE, Atypecd1, 1, Lwaitg);
681      }      }
682    }    }
683    if (Ldriveident2) {    if (Ldriveident2 && *Ldriveident2 && Atypecd2 != _MEDIA_NONE) {
684      GtkComboBox *Lcombob2 = GTK_COMBO_BOX(sc_grave_get_widget(Ag, Ldriveident2));      GtkComboBox *Lcombob2 = GTK_COMBO_BOX(sc_grave_get_widget(Ag, Ldriveident2));
685      GtkTreeModel *Lmodelb2 = gtk_combo_box_get_model(Lcombob2);      GtkTreeModel *Lmodelb2 = gtk_combo_box_get_model(Lcombob2);
686      if (gtk_combo_box_get_active_iter(Lcombob2, &Liter)) {      if (gtk_combo_box_get_active_iter(Lcombob2, &Liter)) {
# Line 724  gboolean waiting_for_user(Tgrave *Ag, gi Line 726  gboolean waiting_for_user(Tgrave *Ag, gi
726    return (Lcont == 0 && Labort == FALSE);    return (Lcont == 0 && Labort == FALSE);
727  }  }
728    
729    gboolean is_an_iso(Tgrave *Ag, gchar *Aname)
730    {
731      gboolean Lstatus = FALSE;
732      gchar *Liso = get_combo_value(sc_grave_get_widget(Ag, Aname));
733    printf("=%s= iso? %s\n", Aname, Liso);
734      Lstatus = !strcmp(Liso, "iso");
735    
736      return Lstatus;
737    }
738    
739  /*  /*
740   * vim:et:ts=8:sts=2:sw=2   * vim:et:ts=8:sts=2:sw=2
741   */   */

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

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