Mercurial > audlegacy-plugins
comparison src/icecast/icecast.c @ 2900:36b68e7ad725
added stream parameters widgets
author | Andrew O. Shadoura <bugzilla@tut.by> |
---|---|
date | Wed, 13 Aug 2008 13:36:54 +0300 |
parents | 130ab8a76ce6 |
children | 167606c02d76 |
comparison
equal
deleted
inserted
replaced
2899:130ab8a76ce6 | 2900:36b68e7ad725 |
---|---|
516 | 516 |
517 g_free(stream_genre); | 517 g_free(stream_genre); |
518 stream_genre = g_strdup(gtk_entry_get_text(GTK_ENTRY(genre_entry))); | 518 stream_genre = g_strdup(gtk_entry_get_text(GTK_ENTRY(genre_entry))); |
519 | 519 |
520 g_free(stream_description); | 520 g_free(stream_description); |
521 stream_description = g_strdup(gtk_entry_get_text(GTK_ENTRY(genre_entry))); | 521 stream_description = g_strdup(gtk_entry_get_text(GTK_ENTRY(description_entry))); |
522 | 522 |
523 db = aud_cfg_db_open(); | 523 db = aud_cfg_db_open(); |
524 aud_cfg_db_set_int(db, ICECAST_CFGID, "streamformat", streamformat); | 524 aud_cfg_db_set_int(db, ICECAST_CFGID, "streamformat", streamformat); |
525 aud_cfg_db_set_string(db, ICECAST_CFGID, "server_address", server_address); | 525 aud_cfg_db_set_string(db, ICECAST_CFGID, "server_address", server_address); |
526 aud_cfg_db_set_string(db, ICECAST_CFGID, "server_user", server_user); | 526 aud_cfg_db_set_string(db, ICECAST_CFGID, "server_user", server_user); |
719 label = gtk_label_new(_("percents are filled")); | 719 label = gtk_label_new(_("percents are filled")); |
720 gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); | 720 gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); |
721 | 721 |
722 gtk_box_pack_start(GTK_BOX(configure_vbox), gtk_hseparator_new(), FALSE, FALSE, 0); | 722 gtk_box_pack_start(GTK_BOX(configure_vbox), gtk_hseparator_new(), FALSE, FALSE, 0); |
723 | 723 |
724 hbox = gtk_hbox_new(FALSE, 5); | |
725 gtk_box_pack_start(GTK_BOX(configure_vbox), hbox, FALSE, FALSE, 0); | |
726 | |
727 public_check = gtk_check_button_new_with_label(_("Stream is public")); | |
728 | |
729 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(public_check), stream_is_public?TRUE:FALSE); | |
730 | |
731 gtk_box_pack_start(GTK_BOX(hbox), public_check, TRUE, TRUE, 0); | |
732 | |
733 hbox = gtk_hbox_new(FALSE, 5); | |
734 gtk_box_pack_start(GTK_BOX(configure_vbox), hbox, FALSE, FALSE, 0); | |
735 | |
736 label = gtk_label_new(_("Stream name:")); | |
737 gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); | |
738 | |
739 name_entry = gtk_entry_new(); | |
740 | |
741 gtk_entry_set_text(GTK_ENTRY(name_entry), stream_name); | |
742 | |
743 gtk_box_pack_start(GTK_BOX(hbox), name_entry, TRUE, TRUE, 0); | |
744 | |
745 hbox = gtk_hbox_new(FALSE, 5); | |
746 gtk_box_pack_start(GTK_BOX(configure_vbox), hbox, FALSE, FALSE, 0); | |
747 | |
748 label = gtk_label_new(_("Stream URL:")); | |
749 gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); | |
750 | |
751 url_entry = gtk_entry_new(); | |
752 | |
753 gtk_entry_set_text(GTK_ENTRY(url_entry), stream_url); | |
754 | |
755 gtk_box_pack_start(GTK_BOX(hbox), url_entry, TRUE, TRUE, 0); | |
756 | |
757 hbox = gtk_hbox_new(FALSE, 5); | |
758 gtk_box_pack_start(GTK_BOX(configure_vbox), hbox, FALSE, FALSE, 0); | |
759 | |
760 label = gtk_label_new(_("Stream genre:")); | |
761 gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); | |
762 | |
763 genre_entry = gtk_entry_new(); | |
764 | |
765 gtk_entry_set_text(GTK_ENTRY(genre_entry), stream_genre); | |
766 | |
767 gtk_box_pack_start(GTK_BOX(hbox), genre_entry, TRUE, TRUE, 0); | |
768 | |
769 hbox = gtk_hbox_new(FALSE, 5); | |
770 gtk_box_pack_start(GTK_BOX(configure_vbox), hbox, FALSE, FALSE, 0); | |
771 | |
772 label = gtk_label_new(_("Stream description:")); | |
773 gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); | |
774 | |
775 description_entry = gtk_entry_new(); | |
776 | |
777 gtk_entry_set_text(GTK_ENTRY(description_entry), stream_description); | |
778 | |
779 gtk_box_pack_start(GTK_BOX(hbox), description_entry, TRUE, TRUE, 0); | |
780 | |
781 gtk_box_pack_start(GTK_BOX(configure_vbox), gtk_hseparator_new(), FALSE, FALSE, 0); | |
782 | |
724 configure_bbox = gtk_hbutton_box_new(); | 783 configure_bbox = gtk_hbutton_box_new(); |
725 gtk_button_box_set_layout(GTK_BUTTON_BOX(configure_bbox), | 784 gtk_button_box_set_layout(GTK_BUTTON_BOX(configure_bbox), |
726 GTK_BUTTONBOX_END); | 785 GTK_BUTTONBOX_END); |
727 gtk_button_box_set_spacing(GTK_BUTTON_BOX(configure_bbox), 5); | 786 gtk_button_box_set_spacing(GTK_BUTTON_BOX(configure_bbox), 5); |
728 gtk_box_pack_start(GTK_BOX(configure_vbox), configure_bbox, | 787 gtk_box_pack_start(GTK_BOX(configure_vbox), configure_bbox, |