[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Graveman-cvs] Changes to graveman/current/src/interface.c
From: |
sylvain cresto |
Subject: |
[Graveman-cvs] Changes to graveman/current/src/interface.c |
Date: |
Tue, 08 Feb 2005 13:06:53 -0500 |
Index: graveman/current/src/interface.c
diff -u graveman/current/src/interface.c:1.16
graveman/current/src/interface.c:1.17
--- graveman/current/src/interface.c:1.16 Tue Feb 8 02:32:57 2005
+++ graveman/current/src/interface.c Tue Feb 8 18:06:51 2005
@@ -751,9 +751,6 @@
prepare_disable_when(Lhash, "dstothercombo_notcdrw", "btnerasecdrwother1",
NULL);
prepare_disable_when(Lhash, "dstothercombo_notdvdrw",
"btnformatdvdrwother1", NULL);
- update_combo_graveur(Lhash);
-
-
/* on rempli les autres combo */
remplirecombo(GTK_COMBO_BOX(glade_to_hash(Lxml, Lhash, "dataformat")), "",
Gformatcd,
TRUE, conf_get_string("dataformat"));
@@ -781,18 +778,20 @@
g_signal_connect(G_OBJECT(glade_xml_get_widget(Lxml, "btnnextdvddata2")),
"clicked", G_CALLBACK(gonextpage), Lbodydvddata);
/* boutons "graver" */
- g_signal_connect(G_OBJECT(glade_xml_get_widget(Lxml, "btnburnaudio2")),
"clicked", G_CALLBACK(confirm_burn), Lhash);
- g_signal_connect(G_OBJECT(glade_xml_get_widget(Lxml, "btnburndata2")),
"clicked", G_CALLBACK(confirm_burn), Lhash);
- g_signal_connect(G_OBJECT(glade_xml_get_widget(Lxml, "btnburndata3")),
"clicked", G_CALLBACK(confirm_burn), Lhash);
- g_signal_connect(G_OBJECT(glade_xml_get_widget(Lxml, "btnburndvddata2")),
"clicked", G_CALLBACK(confirm_burn), Lhash);
- g_signal_connect(G_OBJECT(glade_xml_get_widget(Lxml, "btnburndvddata3")),
"clicked", G_CALLBACK(confirm_burn), Lhash);
- g_signal_connect(G_OBJECT(glade_xml_get_widget(Lxml, "btnburncopy1")),
"clicked", G_CALLBACK(confirm_burn), Lhash);
+ g_signal_connect(G_OBJECT(glade_to_hash(Lxml, Lhash, "btnburnaudio2")),
"clicked", G_CALLBACK(confirm_burn), Lhash);
+ g_signal_connect(G_OBJECT(glade_to_hash(Lxml, Lhash, "btnburndata2")),
"clicked", G_CALLBACK(confirm_burn), Lhash);
+ g_signal_connect(G_OBJECT(glade_to_hash(Lxml, Lhash, "btnburndata3")),
"clicked", G_CALLBACK(confirm_burn), Lhash);
+ g_signal_connect(G_OBJECT(glade_to_hash(Lxml, Lhash, "btnburndvddata2")),
"clicked", G_CALLBACK(confirm_burn), Lhash);
+ g_signal_connect(G_OBJECT(glade_to_hash(Lxml, Lhash, "btnburndvddata3")),
"clicked", G_CALLBACK(confirm_burn), Lhash);
+ g_signal_connect(G_OBJECT(glade_to_hash(Lxml, Lhash, "btnburncopy1")),
"clicked", G_CALLBACK(confirm_burn), Lhash);
/* boutons de la page "autres operations" */
g_signal_connect(G_OBJECT(Lbtnerasecdrw), "clicked",
G_CALLBACK(confirm_erasecdrw), Lhash);
g_signal_connect(G_OBJECT(Lbtnformatdvdrw), "clicked",
G_CALLBACK(popup_formatdvdrw), Lhash);
- g_signal_connect(G_OBJECT(glade_xml_get_widget(Lxml, "btnfixcdother1")),
"clicked", G_CALLBACK(confirm_fixcd), Lhash);
+ g_signal_connect(G_OBJECT(glade_to_hash(Lxml, Lhash, "btnfixcdother1")),
"clicked", G_CALLBACK(confirm_fixcd), Lhash);
+ update_combo_graveur(Lhash);
+
/* menu popup sur les listes */
glade_to_hash_list(Lxml, Lhash, "audiolenbar", "datasizebar",
"dvddatasizebar", NULL);
Ltreeaudio = GTK_TREE_VIEW(glade_to_hash(Lxml, Lhash, "LISTEAUDIO"));
@@ -865,6 +864,16 @@
GtkComboBox *Ldstdvddatacombo = GTK_COMBO_BOX(g_hash_table_lookup(Ahash,
"dstdvddatacombo"));
GtkComboBox *Ldstaudiocombo = GTK_COMBO_BOX(g_hash_table_lookup(Ahash,
"dstaudiocombo"));
GtkComboBox *Ldstothercombo = GTK_COMBO_BOX(g_hash_table_lookup(Ahash,
"dstothercombo"));
+ GtkButton *Lbtnburnaudio1 = g_hash_table_lookup(Ahash, "btnburnaudio1");
+ GtkButton *Lbtnburnaudio2 = g_hash_table_lookup(Ahash, "btnburnaudio2");
+ GtkButton *Lbtnburndvddata2 = g_hash_table_lookup(Ahash, "btnburndvddata2");
+ GtkButton *Lbtnburndvddata3 = g_hash_table_lookup(Ahash, "btnburndvddata3");
+ GtkButton *Lbtnburncopy1 = g_hash_table_lookup(Ahash, "btnburncopy1");
+ GtkButton *Lbtnfixcdother1 = g_hash_table_lookup(Ahash, "btnfixcdother1");
+ GtkButton *Lbtnerasecdrwother1 = g_hash_table_lookup(Ahash,
"btnerasecdrwother1");
+ gboolean Lreadcd, Lwritecdr, Lwritecdrw, Lreaddvd, Lwritedvd;
+
+ get_current_matos(&Lreadcd, &Lwritecdr, &Lwritecdrw, &Lreaddvd, &Lwritedvd);
remplirecombograveur(Lsrccopycombo, TYPE_ALL + TYPE_ISO,
conf_get_string("srccopycombo"));
@@ -877,6 +886,22 @@
remplirecombograveur(Ldstaudiocombo, TYPE_ALLWRITER,
conf_get_string("dstaudiocombo"));
remplirecombograveur(Ldstothercombo, TYPE_ALLWRITER,
conf_get_string("dstothercombo"));
+
+ if (Lreadcd == FALSE) {
+ gtk_widget_set_sensitive(GTK_WIDGET(Lbtnburncopy1), FALSE);
+ }
+ if (Lwritecdr == FALSE) {
+ gtk_widget_set_sensitive(GTK_WIDGET(Lbtnburnaudio1), FALSE);
+ gtk_widget_set_sensitive(GTK_WIDGET(Lbtnburnaudio2), FALSE);
+ gtk_widget_set_sensitive(GTK_WIDGET(Lbtnfixcdother1), FALSE);
+ }
+ if (Lwritecdrw == FALSE) {
+ gtk_widget_set_sensitive(GTK_WIDGET(Lbtnerasecdrwother1), FALSE);
+ }
+ if (Lwritedvd == FALSE) {
+ gtk_widget_set_sensitive(GTK_WIDGET(Lbtnburndvddata2), FALSE);
+ gtk_widget_set_sensitive(GTK_WIDGET(Lbtnburndvddata3), FALSE);
+ }
}
GtkWidget* create_fileselection1 (GtkWindow *AParent, GtkFileChooserAction
AType)
@@ -1173,6 +1198,7 @@
if (g_str_has_prefix(Aaction, "btnburncopy")) {
Lbackvalue = burn_copy(Ahash, &Lerror);
+
} else if (g_str_has_prefix(Aaction, "btnburnaudio")) {
Lbackvalue = burn_audio(Ahash, &Lerror);
} else if (g_str_has_prefix(Aaction, "btnburndata")) {
- [Graveman-cvs] Changes to graveman/current/src/interface.c, sylvain cresto, 2005/02/01
- [Graveman-cvs] Changes to graveman/current/src/interface.c, sylvain cresto, 2005/02/02
- [Graveman-cvs] Changes to graveman/current/src/interface.c, sylvain cresto, 2005/02/05
- [Graveman-cvs] Changes to graveman/current/src/interface.c, sylvain cresto, 2005/02/07
- [Graveman-cvs] Changes to graveman/current/src/interface.c,
sylvain cresto <=
- [Graveman-cvs] Changes to graveman/current/src/interface.c, sylvain cresto, 2005/02/08
- [Graveman-cvs] Changes to graveman/current/src/interface.c, sylvain cresto, 2005/02/10
- [Graveman-cvs] Changes to graveman/current/src/interface.c, sylvain cresto, 2005/02/10
- [Graveman-cvs] Changes to graveman/current/src/interface.c, sylvain cresto, 2005/02/10
- [Graveman-cvs] Changes to graveman/current/src/interface.c, sylvain cresto, 2005/02/12
- [Graveman-cvs] Changes to graveman/current/src/interface.c, sylvain cresto, 2005/02/12
- [Graveman-cvs] Changes to graveman/current/src/interface.c, sylvain cresto, 2005/02/15
- [Graveman-cvs] Changes to graveman/current/src/interface.c, sylvain cresto, 2005/02/16
- [Graveman-cvs] Changes to graveman/current/src/interface.c, sylvain cresto, 2005/02/19
- [Graveman-cvs] Changes to graveman/current/src/interface.c, sylvain cresto, 2005/02/20