157 |
GtkWidget *Lvitesse = sc_grave_get_widget(Ag, "dstdvddataspeed"); |
GtkWidget *Lvitesse = sc_grave_get_widget(Ag, "dstdvddataspeed"); |
158 |
Tdriveinfo *Ldevice = get_drive_info(Ag, "dstdvddatacombo"); |
Tdriveinfo *Ldevice = get_drive_info(Ag, "dstdvddatacombo"); |
159 |
GtkLabel *Ltitle = GTK_LABEL(sc_grave_get_data(Ag, "gravetitle")); |
GtkLabel *Ltitle = GTK_LABEL(sc_grave_get_data(Ag, "gravetitle")); |
160 |
|
gchar *Loperation = sc_grave_get_data(Ag, "typeburn"); |
161 |
gboolean Leject = FALSE; |
gboolean Leject = FALSE; |
162 |
gboolean Ldosimul; |
gboolean Ldosimul; |
163 |
gchar *Lbufvitesse; |
gchar *Lbufvitesse; |
|
gchar *Loperation = sc_grave_get_data(Ag, "typeburn"); |
|
164 |
gint Lcurcd; |
gint Lcurcd; |
165 |
gint Lnbrpass=1; |
gint Lnbrpass=1; |
166 |
gint g_out, g_err, Lnbrarg; |
gint g_out, g_err, Lnbrarg; |
168 |
GIOChannel *Lcom, *Lcomerr; |
GIOChannel *Lcom, *Lcomerr; |
169 |
gchar *Lisopara = NULL; |
gchar *Lisopara = NULL; |
170 |
gboolean Lstatus; |
gboolean Lstatus; |
171 |
|
gint Lmediadetect1 = _MEDIA_CDRW; |
172 |
GtkToggleButton *Lbtnnotfix = GTK_TOGGLE_BUTTON(sc_grave_get_widget(Ag, "dvddatanotfix")); |
GtkToggleButton *Lbtnnotfix = GTK_TOGGLE_BUTTON(sc_grave_get_widget(Ag, "dvddatanotfix")); |
173 |
gboolean Lnotfix = Lbtnnotfix ? gtk_toggle_button_get_active(Lbtnnotfix) : FALSE; |
gboolean Lnotfix = Lbtnnotfix ? gtk_toggle_button_get_active(Lbtnnotfix) : FALSE; |
174 |
_DEB("DVD DATA\n"); |
_DEB("DVD DATA\n"); |
184 |
if (Lcurcd > 1 && !Ldosimul) { |
if (Lcurcd > 1 && !Ldosimul) { |
185 |
/* copie sur un nouveau dvd, on demande a l'utilisateur d'inserer le |
/* copie sur un nouveau dvd, on demande a l'utilisateur d'inserer le |
186 |
* nouveau dvdvierge */ |
* nouveau dvdvierge */ |
187 |
gint Lrep; |
/* gint Lrep; |
188 |
GtkWidget *Lconfirm = gtk_message_dialog_new(Lwindow, |
GtkWidget *Lconfirm = gtk_message_dialog_new(Lwindow, |
189 |
GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, |
GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, |
190 |
GTK_BUTTONS_YES_NO, |
GTK_BUTTONS_YES_NO, |
191 |
_("Now you should insert next DVD-RW/DVD+RW, do you want to continue operation ?")); |
_("Now you should insert next DVD-RW/DVD+RW, do you want to continue operation ?")); |
192 |
Lrep = gtk_dialog_run(GTK_DIALOG(Lconfirm)); |
Lrep = gtk_dialog_run(GTK_DIALOG(Lconfirm)); |
193 |
gtk_widget_destroy(Lconfirm); |
gtk_widget_destroy(Lconfirm); |
194 |
if (Lrep == GTK_RESPONSE_NO) { |
if (Lrep == GTK_RESPONSE_NO) {*/ |
195 |
/* si c'est non alors on arrete */ |
/* si c'est non alors on arrete */ |
196 |
*Labort = TRUE; |
/* *Labort = TRUE; |
197 |
Lstatus = TRUE; |
Lstatus = TRUE; |
198 |
break; |
break; |
199 |
|
}*/ |
200 |
|
GSList *Llmediarequis1 = sc_grave_get_data(Ag, "mediarequis1"); |
201 |
|
gint *Lmediatitle1 = sc_grave_get_data(Ag, "mediatitle1"); |
202 |
|
gboolean Lstatus; |
203 |
|
Tgrave *Ldialoghash; |
204 |
|
GtkWidget *Lconfirm; |
205 |
|
gint Lrep; |
206 |
|
|
207 |
|
eject_cd(get_dvdrwtools_bus(Ldevice), NULL); |
208 |
|
Lstatus = waiting_for_user(*Lmediatitle1, Ag, Llmediarequis1 , &Lmediadetect1, Ldevice); |
209 |
|
|
210 |
|
if (Lstatus==FALSE) { |
211 |
|
/* si c'est non alors on arrete */ |
212 |
|
*Labort = TRUE; Lstatus = TRUE; break; |
213 |
|
} |
214 |
|
|
215 |
|
Ldialoghash = create_dialog_select_dvdoperation(GTK_WIDGET(Lwindow), Lmediadetect1); |
216 |
|
Lconfirm = sc_grave_get_data(Ldialoghash, "window"); |
217 |
|
Lrep = gtk_dialog_run(GTK_DIALOG(Lconfirm)); |
218 |
|
|
219 |
|
if (Lrep != GTK_RESPONSE_YES) { |
220 |
|
/* si c'est non alors on arrete */ |
221 |
|
*Labort = TRUE; Lstatus = TRUE; |
222 |
|
} else { |
223 |
|
GtkRadioButton *Labradio = GTK_RADIO_BUTTON(sc_grave_get_widget(Ldialoghash, "burninitial")); |
224 |
|
g_free(Loperation); |
225 |
|
Loperation = g_strdup(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(Labradio)) ? "-Z" : "-M"); |
226 |
} |
} |
227 |
|
gtk_widget_destroy(Lconfirm); |
228 |
|
|
229 |
|
if (*Labort == TRUE) break; |
230 |
} |
} |
231 |
|
|
232 |
|
|
247 |
Lcommandline = g_strdup_printf("%s %s %s %s %s%s %s -gui -use-the-force-luke=tty%s %s -graft-points -path-list %s", |
Lcommandline = g_strdup_printf("%s %s %s %s %s%s %s -gui -use-the-force-luke=tty%s %s -graft-points -path-list %s", |
248 |
conf_get_string("growisofs"), |
conf_get_string("growisofs"), |
249 |
Lnotfix ? "" : "-dvd-compat", |
Lnotfix ? "" : "-dvd-compat", |
250 |
Loperation, get_dvdrwtools_bus(Ldevice), |
Loperation, |
251 |
|
get_dvdrwtools_bus(Ldevice), |
252 |
*Lbufvitesse != '0' ? "-speed=" : "", *Lbufvitesse != '0' ? Lbufvitesse : "", |
*Lbufvitesse != '0' ? "-speed=" : "", *Lbufvitesse != '0' ? Lbufvitesse : "", |
253 |
conf_get_boolean("overburn") ? "-overburn" : "", |
conf_get_boolean("overburn") ? "-overburn" : "", |
254 |
Ldosimul ? ",dummy" : "", /* simulation ? */ |
Ldosimul ? ",dummy" : "", /* simulation ? */ |