Mercurial > audlegacy-plugins
comparison src/filewriter/mp3.c @ 1044:b1128efde471 trunk
[svn] - get rid of all warnings gcc 4.2.0 emits with my build configuration.
- fix for minor bugs.
author | yaz |
---|---|
date | Sun, 20 May 2007 12:05:48 -0700 |
parents | be2d04b2bd28 |
children | 616928ec054d |
comparison
equal
deleted
inserted
replaced
1043:f65aa5417221 | 1044:b1128efde471 |
---|---|
457 } | 457 } |
458 | 458 |
459 static void vbr_abr_toggle(GtkToggleButton * togglebutton, | 459 static void vbr_abr_toggle(GtkToggleButton * togglebutton, |
460 gpointer user_data) | 460 gpointer user_data) |
461 { | 461 { |
462 if (user_data == "VBR") { | 462 if (!strcmp(user_data, "VBR")) { |
463 gtk_widget_set_sensitive(abr_frame, FALSE); | 463 gtk_widget_set_sensitive(abr_frame, FALSE); |
464 gtk_widget_set_sensitive(vbr_frame, TRUE); | 464 gtk_widget_set_sensitive(vbr_frame, TRUE); |
465 vbr_type = 0; | 465 vbr_type = 0; |
466 } | 466 } |
467 else if (user_data == "ABR") { | 467 else if (!strcmp(user_data, "ABR")) { |
468 gtk_widget_set_sensitive(abr_frame, TRUE); | 468 gtk_widget_set_sensitive(abr_frame, TRUE); |
469 gtk_widget_set_sensitive(vbr_frame, FALSE); | 469 gtk_widget_set_sensitive(vbr_frame, FALSE); |
470 vbr_type = 1; | 470 vbr_type = 1; |
471 } | 471 } |
472 } | 472 } |
569 } | 569 } |
570 | 570 |
571 static void id3_only_version(GtkToggleButton * togglebutton, | 571 static void id3_only_version(GtkToggleButton * togglebutton, |
572 gpointer user_data) | 572 gpointer user_data) |
573 { | 573 { |
574 if (user_data == "v1" && inside != 1) { | 574 if (!strcmp(user_data, "v1") && inside != 1) { |
575 if (gtk_toggle_button_get_active | 575 if (gtk_toggle_button_get_active |
576 (GTK_TOGGLE_BUTTON(tags_only_v1_toggle)) == TRUE); | 576 (GTK_TOGGLE_BUTTON(tags_only_v1_toggle)) == TRUE); |
577 { | 577 { |
578 inside = 1; | 578 inside = 1; |
579 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON | 579 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON |
583 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON | 583 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON |
584 (tags_force_id3v2_toggle), FALSE); | 584 (tags_force_id3v2_toggle), FALSE); |
585 inside = 0; | 585 inside = 0; |
586 } | 586 } |
587 } | 587 } |
588 else if (user_data == "v2" && inside != 1) { | 588 else if (!strcmp(user_data, "v2") && inside != 1) { |
589 if (gtk_toggle_button_get_active | 589 if (gtk_toggle_button_get_active |
590 (GTK_TOGGLE_BUTTON(tags_only_v2_toggle)) == TRUE); | 590 (GTK_TOGGLE_BUTTON(tags_only_v2_toggle)) == TRUE); |
591 { | 591 { |
592 inside = 1; | 592 inside = 1; |
593 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON | 593 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON |