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")); |
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 |
} |
} |
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)) { |
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)) { |
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 |
*/ |
*/ |