903 |
GtkWidget *Lwindow1 = GTK_WIDGET(sc_grave_get_widget(Lg, "topwindow")); |
GtkWidget *Lwindow1 = GTK_WIDGET(sc_grave_get_widget(Lg, "topwindow")); |
904 |
GtkWidget *Lconfirm; |
GtkWidget *Lconfirm; |
905 |
gint Lrep; |
gint Lrep; |
906 |
|
GSList *Llmediarequis = g_slist_append(NULL, GINT_TO_POINTER(_MEDIA_CDR + _MEDIA_NOBLANK + _MEDIA_APPENDABLE)); |
907 |
if (waiting_for_user("", Lg, _MEDIA_CDR + _MEDIA_NOBLANK + _MEDIA_APPENDABLE, NULL, "dstothercombo")==FALSE) return; |
gboolean Lstatus; |
908 |
|
|
909 |
|
Lstatus = waiting_for_user(_MEDIA_BLANKORAPPENDABLE, Lg, Llmediarequis, NULL, "dstothercombo"); |
910 |
|
g_slist_free(Llmediarequis); |
911 |
|
|
912 |
|
if (Lstatus==FALSE) return; |
913 |
|
|
914 |
/* confirmation debut de l'operation */ |
/* confirmation debut de l'operation */ |
915 |
Lconfirm = gtk_message_dialog_new(GTK_WINDOW(Lwindow1), |
Lconfirm = gtk_message_dialog_new(GTK_WINDOW(Lwindow1), |
982 |
GtkWidget *Lwindow1 = GTK_WIDGET(sc_grave_get_widget(Lg, "topwindow")); |
GtkWidget *Lwindow1 = GTK_WIDGET(sc_grave_get_widget(Lg, "topwindow")); |
983 |
Tgrave *Ldialoghash; |
Tgrave *Ldialoghash; |
984 |
GtkWidget *Lconfirm; |
GtkWidget *Lconfirm; |
985 |
|
GSList *Llmediarequis = g_slist_append(NULL, GINT_TO_POINTER(_MEDIA_CDRW + _MEDIA_NOBLANK)); |
986 |
if (waiting_for_user("", Lg, _MEDIA_CDRW + _MEDIA_NOBLANK, NULL, "dstothercombo")==FALSE) return; |
gboolean Lstatus; |
987 |
|
printf("tout debut !\n"); |
988 |
|
Lstatus = waiting_for_user(_MEDIA_BLANKORAPPENDABLE, Lg, Llmediarequis, NULL, "dstothercombo"); |
989 |
|
printf("aprew awit !\n"); |
990 |
|
g_slist_free(Llmediarequis); |
991 |
|
|
992 |
|
if (Lstatus==FALSE) return; |
993 |
|
|
994 |
Ldialoghash = create_dialog_confirm_operation(Lwindow1, _("Do you really want to erase the CD-RW ?"), |
Ldialoghash = create_dialog_confirm_operation(Lwindow1, _("Do you really want to erase the CD-RW ?"), |
995 |
_("_Fast blank disk when erasing CD-RW"), conf_get_boolean("fastblank")); |
_("_Fast blank disk when erasing CD-RW"), conf_get_boolean("fastblank")); |
1024 |
gchar *Ltitle = NULL; |
gchar *Ltitle = NULL; |
1025 |
GtkWidget *Lwindow1 = GTK_WIDGET(sc_grave_get_widget(Lg, "topwindow")); |
GtkWidget *Lwindow1 = GTK_WIDGET(sc_grave_get_widget(Lg, "topwindow")); |
1026 |
GtkWidget *Ldevice1 = NULL, *Ldevice2 = NULL; |
GtkWidget *Ldevice1 = NULL, *Ldevice2 = NULL; |
1027 |
gint Lmediarequis1 = _MEDIA_NONE, Lmediarequis2 = _MEDIA_NONE; |
GSList *Llmediarequis1 = NULL; |
1028 |
|
GSList *Llmediarequis2 = NULL; |
1029 |
|
gint Lmediatitle1 = _MEDIA_NONE, Lmediatitle2 = _MEDIA_NONE; |
1030 |
gint Lmediadetect1 = _MEDIA_NONE, Lmediadetect2 = _MEDIA_NONE; |
gint Lmediadetect1 = _MEDIA_NONE, Lmediadetect2 = _MEDIA_NONE; |
1031 |
gchar Ldevicename1[_BUF_SIZE], Ldevicename2[_BUF_SIZE]; |
gchar Ldevicename1[_BUF_SIZE], Ldevicename2[_BUF_SIZE]; |
1032 |
gboolean Lwritercdrw; |
gboolean Lwritercdrw; |
1057 |
Ltxt = _("Do you really want to create an audio cd ?"); |
Ltxt = _("Do you really want to create an audio cd ?"); |
1058 |
Ltitle = _("Writing audio cd in progress..."); |
Ltitle = _("Writing audio cd in progress..."); |
1059 |
g_strlcpy(Ldevicename1, "dstaudiocombo", sizeof(Ldevicename1)-1); |
g_strlcpy(Ldevicename1, "dstaudiocombo", sizeof(Ldevicename1)-1); |
1060 |
Lmediarequis1 = _MEDIA_CDR + _MEDIA_BLANKORAPPENDABLE; |
Llmediarequis1 = g_slist_append(Llmediarequis1, GINT_TO_POINTER(_MEDIA_CDR + _MEDIA_BLANK)); |
1061 |
|
Llmediarequis1 = g_slist_append(Llmediarequis1, GINT_TO_POINTER(_MEDIA_CDR + _MEDIA_APPENDABLE)); |
1062 |
|
Llmediarequis1 = g_slist_append(Llmediarequis1, GINT_TO_POINTER(_MEDIA_CDRW + _MEDIA_BLANK)); |
1063 |
|
Llmediarequis1 = g_slist_append(Llmediarequis1, GINT_TO_POINTER(_MEDIA_CDRW + _MEDIA_APPENDABLE)); |
1064 |
|
Llmediarequis1 = g_slist_append(Llmediarequis1, GINT_TO_POINTER(_MEDIA_CDRW + _MEDIA_NOBLANK)); |
1065 |
|
Lmediatitle1 = _MEDIA_BLANKORAPPENDABLE; |
1066 |
} else if (g_str_has_prefix(Lname, "btnburndata") || g_str_has_prefix(Lname, "btnburndvddata")) { |
} else if (g_str_has_prefix(Lname, "btnburndata") || g_str_has_prefix(Lname, "btnburndvddata")) { |
1067 |
GtkTreeIter Liter; |
GtkTreeIter Liter; |
1068 |
GtkTreeModel *Ltreemodel = gtk_tree_view_get_model(GTK_TREE_VIEW(sc_grave_get_data(Lg, "_current_list"))); |
GtkTreeModel *Ltreemodel = gtk_tree_view_get_model(GTK_TREE_VIEW(sc_grave_get_data(Lg, "_current_list"))); |
1098 |
} |
} |
1099 |
if (!Liso) { |
if (!Liso) { |
1100 |
Ltitle = _("Writing data cd in progress..."); |
Ltitle = _("Writing data cd in progress..."); |
1101 |
Lmediarequis1 = _MEDIA_CDR + _MEDIA_BLANKORAPPENDABLE; |
Llmediarequis1 = g_slist_append(Llmediarequis1, GINT_TO_POINTER(_MEDIA_CDR + _MEDIA_BLANK)); |
1102 |
|
Llmediarequis1 = g_slist_append(Llmediarequis1, GINT_TO_POINTER(_MEDIA_CDR + _MEDIA_APPENDABLE)); |
1103 |
|
Llmediarequis1 = g_slist_append(Llmediarequis1, GINT_TO_POINTER(_MEDIA_CDRW + _MEDIA_BLANK)); |
1104 |
|
Llmediarequis1 = g_slist_append(Llmediarequis1, GINT_TO_POINTER(_MEDIA_CDRW + _MEDIA_APPENDABLE)); |
1105 |
|
Llmediarequis1 = g_slist_append(Llmediarequis1, GINT_TO_POINTER(_MEDIA_CDRW + _MEDIA_NOBLANK)); |
1106 |
|
Lmediatitle1 = _MEDIA_BLANKORAPPENDABLE; |
1107 |
} else { |
} else { |
1108 |
Ltitle = _("Writing iso image in progress..."); |
Ltitle = _("Writing iso image in progress..."); |
1109 |
} |
} |
1111 |
Ltxt = _("Do you really want to create a data dvd ?"); |
Ltxt = _("Do you really want to create a data dvd ?"); |
1112 |
Ltitle = _("Writing data dvd in progress..."); |
Ltitle = _("Writing data dvd in progress..."); |
1113 |
g_strlcpy(Ldevicename1, "dstdvddatacombo", sizeof(Ldevicename1)-1); |
g_strlcpy(Ldevicename1, "dstdvddatacombo", sizeof(Ldevicename1)-1); |
1114 |
Lmediarequis1 = _MEDIA_DVDRew; |
Llmediarequis1 = g_slist_append(Llmediarequis1, GINT_TO_POINTER(_MEDIA_DVDR + _MEDIA_BLANK)); |
1115 |
|
Llmediarequis1 = g_slist_append(Llmediarequis1, GINT_TO_POINTER(_MEDIA_DVDR + _MEDIA_APPENDABLE)); |
1116 |
|
Llmediarequis1 = g_slist_append(Llmediarequis1, GINT_TO_POINTER(_MEDIA_DVDPRW)); |
1117 |
|
Llmediarequis1 = g_slist_append(Llmediarequis1, GINT_TO_POINTER(_MEDIA_DVDMRW)); |
1118 |
|
Lmediatitle1 = _MEDIA_DVDRew; |
1119 |
} |
} |
1120 |
} else { |
} else { |
1121 |
/* copie de cd */ |
/* copie de cd */ |
1122 |
Ltxt = _("Do you really want to start the copy ?"); |
Ltxt = _("Do you really want to start the copy ?"); |
1123 |
Ltitle = _("Copying in progress..."); |
Ltitle = _("Copying in progress..."); |
1124 |
g_strlcpy(Ldevicename1, "srccopycombo", sizeof(Ldevicename1)-1); |
g_strlcpy(Ldevicename1, "srccopycombo", sizeof(Ldevicename1)-1); |
1125 |
if (!is_an_iso(Lg, Ldevicename1)) Lmediarequis1 = _MEDIA_CD + _MEDIA_NOBLANK; |
if (!is_an_iso(Lg, Ldevicename1)) { |
1126 |
|
Llmediarequis1 = g_slist_append(Llmediarequis1, GINT_TO_POINTER(_MEDIA_CD + _MEDIA_NOBLANK)); |
1127 |
|
Lmediatitle1 = _MEDIA_CD; |
1128 |
|
} |
1129 |
g_strlcpy(Ldevicename2, "dstcopycombo", sizeof(Ldevicename2)-1); |
g_strlcpy(Ldevicename2, "dstcopycombo", sizeof(Ldevicename2)-1); |
1130 |
printf("devname2 == > %s\n", Ldevicename2); |
printf("devname2 == > %s\n", Ldevicename2); |
1131 |
if (!is_an_iso(Lg, Ldevicename2)) Lmediarequis2 = _MEDIA_CDR + _MEDIA_BLANKORAPPENDABLE; |
if (!is_an_iso(Lg, Ldevicename2)) { |
1132 |
|
Llmediarequis2 = g_slist_append(Llmediarequis2, GINT_TO_POINTER(_MEDIA_CDR + _MEDIA_BLANK)); |
1133 |
|
Llmediarequis2 = g_slist_append(Llmediarequis2, GINT_TO_POINTER(_MEDIA_CDR + _MEDIA_APPENDABLE)); |
1134 |
|
Llmediarequis2 = g_slist_append(Llmediarequis2, GINT_TO_POINTER(_MEDIA_CDRW + _MEDIA_BLANK)); |
1135 |
|
Llmediarequis2 = g_slist_append(Llmediarequis2, GINT_TO_POINTER(_MEDIA_CDRW + _MEDIA_APPENDABLE)); |
1136 |
|
Llmediarequis2 = g_slist_append(Llmediarequis2, GINT_TO_POINTER(_MEDIA_CDRW + _MEDIA_NOBLANK)); |
1137 |
|
Lmediatitle2 = _MEDIA_BLANKORAPPENDABLE; |
1138 |
|
} |
1139 |
} |
} |
1140 |
|
|
1141 |
if (Lmediarequis1 != _MEDIA_NONE) Ldevice1 = sc_grave_get_widget(Lg, Ldevicename1); |
if (g_slist_length(Llmediarequis1)) Ldevice1 = sc_grave_get_widget(Lg, Ldevicename1); |
1142 |
if (Lmediarequis2 != _MEDIA_NONE) Ldevice2 = sc_grave_get_widget(Lg, Ldevicename2); |
if (g_slist_length(Llmediarequis2)) Ldevice2 = sc_grave_get_widget(Lg, Ldevicename2); |
1143 |
|
|
1144 |
/* attente que l'utilisateur ai bien insere un cd */ |
/* attente que l'utilisateur ai bien insere un cd */ |
1145 |
if (waiting_for_user("", Lg, Lmediarequis1, &Lmediadetect1, Ldevicename1)==FALSE) return; |
printf("attente 1\n"); |
1146 |
if (waiting_for_user("", Lg, Lmediarequis2, &Lmediadetect2, Ldevicename2)==FALSE) return; |
if (waiting_for_user(Lmediatitle1, Lg, Llmediarequis1, &Lmediadetect1, Ldevicename1)==FALSE) return; |
1147 |
|
printf("attente 2\n"); |
1148 |
|
if (waiting_for_user(Lmediatitle2, Lg, Llmediarequis2, &Lmediadetect2, Ldevicename2)==FALSE) return; |
1149 |
|
printf("attente 3\n"); |
1150 |
|
|
1151 |
/* confirmation debut de l'operation */ |
/* confirmation debut de l'operation */ |
1152 |
if (Loperation != WRITE_DVD) { |
if (Loperation != WRITE_DVD) { |