50 |
/* on reconnai le type fichier grace a son extension */ |
/* on reconnai le type fichier grace a son extension */ |
51 |
|
|
52 |
#ifdef ENABLE_MP3 |
#ifdef ENABLE_MP3 |
53 |
if (sc_str_has_casesuffix(Anom, MP3)) { |
if (GsupportMp3 && sc_str_has_casesuffix(Anom, MP3)) { |
54 |
Lstatus = getMp3Info(Anom, <itle, &LAlbum, &LArtist, &Llennbr, NULL); |
Lstatus = getMp3Info(Anom, <itle, &LAlbum, &LArtist, &Llennbr, NULL); |
55 |
} else |
} else |
56 |
#endif |
#endif |
57 |
#ifdef ENABLE_OGG |
#ifdef ENABLE_OGG |
58 |
if (sc_str_has_casesuffix(Anom, OGG)) { |
if (GsupportOgg && sc_str_has_casesuffix(Anom, OGG)) { |
59 |
Lstatus = getOggInfo(Anom, <itle, &LAlbum, &LArtist, &Llennbr, NULL); |
Lstatus = getOggInfo(Anom, <itle, &LAlbum, &LArtist, &Llennbr, NULL); |
60 |
} else |
} else |
61 |
#endif |
#endif |
375 |
|
|
376 |
conf_store_value("iconsize", ++Lsize); |
conf_store_value("iconsize", ++Lsize); |
377 |
|
|
378 |
manage_top_menu(Lhash, MENU_UPDATE); |
manage_interface(Lhash, MENU_UPDATE); |
379 |
} |
} |
380 |
|
|
381 |
/* clique sur le popup pour l'affichage ou non de la status bar */ |
/* clique sur le popup pour l'affichage ou non de la status bar */ |
501 |
GtkWidget *Lfilesel = create_adddirselection(NULL); |
GtkWidget *Lfilesel = create_adddirselection(NULL); |
502 |
GtkTreeIter Liter; |
GtkTreeIter Liter; |
503 |
GSList *Lfiles, *Lcur; |
GSList *Lfiles, *Lcur; |
504 |
GtkProgressBar *Lcontenance; // = GTK_PROGRESS_BAR(g_hash_table_lookup(Lhash, "datasizebar")); |
GtkProgressBar *Lcontenance; |
505 |
guint64 *Ldatasize; // = (guint32 *)g_hash_table_lookup(Lhash, "datasize"); |
guint64 *Ldatasize; |
506 |
guint64 *Ldatamaxsize; // = (guint32 *)g_hash_table_lookup(Lhash, "datamaxsize"); |
guint64 *Ldatamaxsize; |
507 |
gint Lnumsel = gtk_tree_selection_count_selected_rows(Lselection); |
gint Lnumsel = gtk_tree_selection_count_selected_rows(Lselection); |
508 |
|
gint Ltype; |
509 |
GtkTreePath *Lpath = NULL; |
GtkTreePath *Lpath = NULL; |
510 |
|
|
511 |
_REMPLISSAGE_VALUE(Lhash, Lliste, Ldatasize, Ldatamaxsize, Lcontenance); |
_REMPLISSAGE_VALUE(Lhash, Lliste, Ldatasize, Ldatamaxsize, Lcontenance); |
522 |
gtk_tree_view_get_cursor(GTK_TREE_VIEW(Lliste), &Lpath, NULL); |
gtk_tree_view_get_cursor(GTK_TREE_VIEW(Lliste), &Lpath, NULL); |
523 |
if (!Lpath) return; |
if (!Lpath) return; |
524 |
gtk_tree_model_get_iter(Ltreemodel, &Liter, Lpath); |
gtk_tree_model_get_iter(Ltreemodel, &Liter, Lpath); |
525 |
|
gtk_tree_model_get(Ltreemodel, &Liter, 0, &Ltype, -1); |
526 |
|
if (Ltype == TYPE_FILE) { |
527 |
|
gtk_tree_path_up(Lpath); |
528 |
|
gtk_tree_model_get_iter(Ltreemodel, &Liter, Lpath); |
529 |
|
} |
530 |
gtk_tree_path_free(Lpath); |
gtk_tree_path_free(Lpath); |
531 |
} |
} |
532 |
|
|
561 |
GHashTable *Lhash = (GHashTable *)Adata; |
GHashTable *Lhash = (GHashTable *)Adata; |
562 |
GtkTreeView *Lliste = GTK_TREE_VIEW(g_hash_table_lookup(Lhash, "_current_list")); |
GtkTreeView *Lliste = GTK_TREE_VIEW(g_hash_table_lookup(Lhash, "_current_list")); |
563 |
GtkTreeSelection *Lselection = gtk_tree_view_get_selection(GTK_TREE_VIEW(Lliste)); |
GtkTreeSelection *Lselection = gtk_tree_view_get_selection(GTK_TREE_VIEW(Lliste)); |
564 |
guint64 *Ldatasize; // = (guint32 *)g_hash_table_lookup(Lhash, "datasize"); |
guint64 *Ldatasize; |
565 |
guint64 *Ldatamaxsize; // = (guint32 *)g_hash_table_lookup(Lhash, "datamaxsize"); |
guint64 *Ldatamaxsize; |
566 |
GtkProgressBar *Lcontenance; // = GTK_PROGRESS_BAR(g_hash_table_lookup(Lhash, "datasizebar")); |
GtkProgressBar *Lcontenance; |
567 |
GtkTreeModel *Ltreemodel = gtk_tree_view_get_model(GTK_TREE_VIEW(Lliste)); |
GtkTreeModel *Ltreemodel = gtk_tree_view_get_model(GTK_TREE_VIEW(Lliste)); |
568 |
GtkWidget *Lfilesel = create_addfileselection(NULL); |
GtkWidget *Lfilesel = create_addfileselection(NULL); |
569 |
GtkTreeIter Liter; |
GtkTreeIter Liter; |
570 |
GSList *Lfiles, *Lcur; |
GSList *Lfiles, *Lcur; |
571 |
|
gint Ltype; |
572 |
gint Lnumsel = gtk_tree_selection_count_selected_rows(Lselection); |
gint Lnumsel = gtk_tree_selection_count_selected_rows(Lselection); |
573 |
GtkTreePath *Lpath = NULL; |
GtkTreePath *Lpath = NULL; |
574 |
|
|
575 |
_REMPLISSAGE_VALUE(Lhash, Lliste, Ldatasize, Ldatamaxsize, Lcontenance); |
_REMPLISSAGE_VALUE(Lhash, Lliste, Ldatasize, Ldatamaxsize, Lcontenance); |
576 |
|
|
|
printf("2= ca le fais ? UINT [%d]\n", (guint32) *Ldatasize); |
|
|
if (GTK_IS_WIDGET(Lcontenance)) { |
|
|
printf("2= ici ca le fais\n"); |
|
|
} |
|
|
|
|
577 |
/* focus sur le premier element si pas de focus */ |
/* focus sur le premier element si pas de focus */ |
578 |
if (!Lnumsel) { |
if (!Lnumsel) { |
579 |
if (!gtk_tree_model_get_iter_first(Ltreemodel, &Liter)) return; |
if (!gtk_tree_model_get_iter_first(Ltreemodel, &Liter)) return; |
586 |
gtk_tree_view_get_cursor(GTK_TREE_VIEW(Lliste), &Lpath, NULL); |
gtk_tree_view_get_cursor(GTK_TREE_VIEW(Lliste), &Lpath, NULL); |
587 |
if (!Lpath) return; |
if (!Lpath) return; |
588 |
gtk_tree_model_get_iter(Ltreemodel, &Liter, Lpath); |
gtk_tree_model_get_iter(Ltreemodel, &Liter, Lpath); |
589 |
|
gtk_tree_model_get(Ltreemodel, &Liter, 0, &Ltype, -1); |
590 |
|
if (Ltype == TYPE_FILE) { |
591 |
|
gtk_tree_path_up(Lpath); |
592 |
|
gtk_tree_model_get_iter(Ltreemodel, &Liter, Lpath); |
593 |
|
} |
594 |
gtk_tree_path_free(Lpath); |
gtk_tree_path_free(Lpath); |
595 |
} |
} |
596 |
|
|
599 |
save_last_dir(GTK_FILE_CHOOSER(Lfilesel)); |
save_last_dir(GTK_FILE_CHOOSER(Lfilesel)); |
600 |
|
|
601 |
Lfiles = gtk_file_chooser_get_filenames(GTK_FILE_CHOOSER(Lfilesel)); |
Lfiles = gtk_file_chooser_get_filenames(GTK_FILE_CHOOSER(Lfilesel)); |
|
printf("ici tout va bien !!!!\n"); |
|
602 |
for (Lcur = Lfiles; Lcur && Lcur->data; Lcur = Lcur->next) { |
for (Lcur = Lfiles; Lcur && Lcur->data; Lcur = Lcur->next) { |
603 |
_add_a_file((gchar *) Lcur->data, GTK_TREE_STORE(Ltreemodel), &Liter, Lhash, Ldatasize); |
_add_a_file((gchar *) Lcur->data, GTK_TREE_STORE(Ltreemodel), &Liter, Lhash, Ldatasize); |
604 |
|
|
605 |
} |
} |
|
printf("ici fin de tout va bien !!!!\n"); |
|
606 |
g_slist_free(Lfiles); |
g_slist_free(Lfiles); |
607 |
|
|
608 |
if ((Lpath = gtk_tree_model_get_path(Ltreemodel, &Liter))) { |
if ((Lpath = gtk_tree_model_get_path(Ltreemodel, &Liter))) { |
612 |
} |
} |
613 |
gtk_widget_destroy(Lfilesel); |
gtk_widget_destroy(Lfilesel); |
614 |
|
|
|
printf("switch !!!!\n"); |
|
|
if (GTK_IS_WIDGET(Lcontenance)) { |
|
|
printf("pre switch ok\n"); |
|
|
} |
|
615 |
switch_pbar_status(Lcontenance, *Ldatamaxsize, *Ldatasize, PB_UPDATE_DATA); |
switch_pbar_status(Lcontenance, *Ldatamaxsize, *Ldatasize, PB_UPDATE_DATA); |
616 |
} |
} |
617 |
|
|
971 |
GHashTable *Lhash = (GHashTable *)Adata; |
GHashTable *Lhash = (GHashTable *)Adata; |
972 |
GtkWidget *Lwindow1 = GTK_WIDGET(g_hash_table_lookup(Lhash, "topwindow")); |
GtkWidget *Lwindow1 = GTK_WIDGET(g_hash_table_lookup(Lhash, "topwindow")); |
973 |
GHashTable *Ldialoghash = create_dialog_confirm_operation(Lwindow1, _("Do you really want to erase the CD-RW ?"), |
GHashTable *Ldialoghash = create_dialog_confirm_operation(Lwindow1, _("Do you really want to erase the CD-RW ?"), |
974 |
("_Fast blank disk when erasing CD-RW"), conf_get_boolean("fastblank")); |
_("_Fast blank disk when erasing CD-RW"), conf_get_boolean("fastblank")); |
975 |
GtkWidget *Lconfirm = g_hash_table_lookup(Ldialoghash, "window"); |
GtkWidget *Lconfirm = g_hash_table_lookup(Ldialoghash, "window"); |
976 |
|
|
977 |
/* confirmation debut de l'operation */ |
/* confirmation debut de l'operation */ |
1091 |
} |
} |
1092 |
g_hash_table_insert(Lhash, "useautoblank", &Luseautoblank); |
g_hash_table_insert(Lhash, "useautoblank", &Luseautoblank); |
1093 |
} else { |
} else { |
|
printf("ici ???\n"); |
|
1094 |
GtkRadioButton *Labradio = GTK_RADIO_BUTTON(g_hash_table_lookup(Ldialoghash, "burninitial")); |
GtkRadioButton *Labradio = GTK_RADIO_BUTTON(g_hash_table_lookup(Ldialoghash, "burninitial")); |
1095 |
Ltypeburn = g_strdup(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(Labradio)) ? "-Z" : "-M"); |
Ltypeburn = g_strdup(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(Labradio)) ? "-Z" : "-M"); |
1096 |
g_hash_table_insert(Lhash, "typeburn", Ltypeburn); |
g_hash_table_insert(Lhash, "typeburn", Ltypeburn); |
1358 |
/* mise a jour des listes contenant les lecteurs */ |
/* mise a jour des listes contenant les lecteurs */ |
1359 |
update_combo_graveur(Lhash); |
update_combo_graveur(Lhash); |
1360 |
update_status_bar_display(Lhash); |
update_status_bar_display(Lhash); |
1361 |
manage_top_menu(Lhash, MENU_UPDATE); |
manage_interface(Lhash, MENU_UPDATE + COMBO_UPDATE ); |
1362 |
|
|
1363 |
gtk_widget_destroy(Lwinproprietes); |
gtk_widget_destroy(Lwinproprietes); |
1364 |
|
|
1571 |
if (g_ascii_strncasecmp(Lunfic, "file://", 7) || ( |
if (g_ascii_strncasecmp(Lunfic, "file://", 7) || ( |
1572 |
! ( |
! ( |
1573 |
#ifdef ENABLE_MP3 |
#ifdef ENABLE_MP3 |
1574 |
sc_str_has_casesuffix(Lunfic, MP3) || |
(GsupportMp3 && sc_str_has_casesuffix(Lunfic, MP3)) || |
1575 |
#endif |
#endif |
1576 |
#ifdef ENABLE_OGG |
#ifdef ENABLE_OGG |
1577 |
sc_str_has_casesuffix(Lunfic, OGG) || |
(GsupportOgg && sc_str_has_casesuffix(Lunfic, OGG)) || |
1578 |
#endif |
#endif |
1579 |
sc_str_has_casesuffix(Lunfic, WAV)))) continue; |
sc_str_has_casesuffix(Lunfic, WAV)))) continue; |
1580 |
|
|