gtk_interface.c
上传用户:riyaled888
上传日期:2009-03-27
资源大小:7338k
文件大小:156k
- gtk_widget_show (dialog_action_area);
- gtk_container_set_border_width (GTK_CONTAINER (dialog_action_area), 10);
- about_ok = gtk_button_new_with_label (_("OK"));
- gtk_widget_ref (about_ok);
- gtk_object_set_data_full (GTK_OBJECT (intf_about), "about_ok", about_ok,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (about_ok);
- gtk_box_pack_start (GTK_BOX (dialog_action_area), about_ok, FALSE, TRUE, 0);
- GTK_WIDGET_SET_FLAGS (about_ok, GTK_CAN_DEFAULT);
- gtk_signal_connect (GTK_OBJECT (about_ok), "clicked",
- GTK_SIGNAL_FUNC (GtkAboutOk),
- NULL);
- gtk_widget_grab_default (about_ok);
- return intf_about;
- }
- GtkWidget*
- create_intf_open (void)
- {
- GtkWidget *intf_open;
- GtkWidget *dialog_vbox7;
- GtkWidget *open_vbox;
- GtkWidget *frame10;
- GtkWidget *hbox21;
- GtkWidget *hbox22;
- GtkWidget *label34;
- GtkWidget *combo2;
- GtkWidget *entry_open;
- GtkWidget *label36;
- GtkWidget *open_notebook;
- GtkWidget *hbox20;
- GtkWidget *combo1;
- GtkWidget *entry_file;
- GtkWidget *vbox13;
- GtkWidget *open_browse;
- GtkWidget *open_file;
- GtkWidget *table5;
- GtkWidget *label35;
- GtkWidget *hbox24;
- GSList *disc_group = NULL;
- GtkWidget *disc_dvd;
- GtkWidget *disc_vcd;
- GtkWidget *disc_cdda;
- GtkWidget *label19;
- GtkWidget *disc_chapter_label;
- GtkWidget *disc_title_label;
- GtkWidget *disc_name;
- GtkObject *disc_title_adj;
- GtkWidget *disc_title;
- GtkObject *disc_chapter_adj;
- GtkWidget *disc_chapter;
- GtkWidget *disc_dvd_use_menu;
- GtkWidget *open_disc;
- GtkWidget *table4;
- GSList *table4_group = NULL;
- GtkWidget *network_udp;
- GtkWidget *network_multicast;
- GtkWidget *network_http;
- GtkWidget *network_udp_port_label;
- GtkWidget *network_multicast_address_label;
- GtkWidget *network_http_url_label;
- GtkWidget *network_multicast_address_combo;
- GtkWidget *network_multicast_address;
- GtkWidget *network_multicast_port_label;
- GtkObject *network_multicast_port_adj;
- GtkWidget *network_multicast_port;
- GtkWidget *network_http_url;
- GtkObject *network_udp_port_adj;
- GtkWidget *network_udp_port;
- GtkWidget *open_net;
- GtkWidget *table3;
- GtkWidget *label24;
- GtkWidget *label25;
- GtkWidget *label26;
- GtkObject *sat_freq_adj;
- GtkWidget *sat_freq;
- GtkWidget *label27;
- GtkWidget *hbox23;
- GSList *pol_group = NULL;
- GtkWidget *sat_pol_vert;
- GtkWidget *sat_pol_hor;
- GtkObject *sat_srate_adj;
- GtkWidget *sat_srate;
- GtkWidget *sat_fec;
- GList *sat_fec_items = NULL;
- GtkWidget *combo_entry1;
- GtkWidget *open_sat;
- GtkWidget *show_subtitle;
- GtkWidget *hbox_subtitle;
- GtkWidget *combo3;
- GtkWidget *entry_subtitle;
- GtkWidget *vbox14;
- GtkWidget *open_browse_subtitle;
- GtkWidget *label37;
- GtkObject *subtitle_delay_adj;
- GtkWidget *subtitle_delay;
- GtkWidget *label3;
- GtkObject *subtitle_fps_adj;
- GtkWidget *subtitle_fps;
- GtkWidget *hbox30;
- GtkWidget *show_sout_settings;
- GtkWidget *sout_settings;
- GtkWidget *dialog_action_area6;
- GtkWidget *hbox18;
- GtkWidget *hbox19;
- GtkWidget *open_ok;
- GtkWidget *open_cancel;
- GtkAccelGroup *accel_group;
- GtkTooltips *tooltips;
- tooltips = gtk_tooltips_new ();
- accel_group = gtk_accel_group_new ();
- intf_open = gtk_dialog_new ();
- gtk_object_set_data (GTK_OBJECT (intf_open), "intf_open", intf_open);
- gtk_container_set_border_width (GTK_CONTAINER (intf_open), 5);
- gtk_window_set_title (GTK_WINDOW (intf_open), _("Open Target"));
- gtk_window_set_policy (GTK_WINDOW (intf_open), FALSE, TRUE, TRUE);
- dialog_vbox7 = GTK_DIALOG (intf_open)->vbox;
- gtk_object_set_data (GTK_OBJECT (intf_open), "dialog_vbox7", dialog_vbox7);
- gtk_widget_show (dialog_vbox7);
- open_vbox = gtk_vbox_new (FALSE, 5);
- gtk_widget_ref (open_vbox);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "open_vbox", open_vbox,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (open_vbox);
- gtk_box_pack_start (GTK_BOX (dialog_vbox7), open_vbox, TRUE, TRUE, 0);
- frame10 = gtk_frame_new ("Media Resource Locator (MRL)");
- gtk_widget_ref (frame10);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "frame10", frame10,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (frame10);
- gtk_box_pack_start (GTK_BOX (open_vbox), frame10, FALSE, TRUE, 0);
- hbox21 = gtk_hbox_new (FALSE, 5);
- gtk_widget_ref (hbox21);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "hbox21", hbox21,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (hbox21);
- gtk_container_add (GTK_CONTAINER (frame10), hbox21);
- gtk_container_set_border_width (GTK_CONTAINER (hbox21), 5);
- hbox22 = gtk_hbox_new (FALSE, 0);
- gtk_widget_ref (hbox22);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "hbox22", hbox22,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (hbox22);
- gtk_box_pack_start (GTK_BOX (hbox21), hbox22, FALSE, TRUE, 0);
- label34 = gtk_label_new (_("Open Target:"));
- gtk_widget_ref (label34);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "label34", label34,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (label34);
- gtk_box_pack_start (GTK_BOX (hbox22), label34, FALSE, FALSE, 0);
- combo2 = gtk_combo_new ();
- gtk_widget_ref (combo2);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "combo2", combo2,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (combo2);
- gtk_box_pack_start (GTK_BOX (hbox21), combo2, TRUE, TRUE, 0);
- entry_open = GTK_COMBO (combo2)->entry;
- gtk_widget_ref (entry_open);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "entry_open", entry_open,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (entry_open);
- label36 = gtk_label_new (_("Alternatively, you can build an MRL using one of the following predefined targets:"));
- gtk_widget_ref (label36);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "label36", label36,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (label36);
- gtk_box_pack_start (GTK_BOX (open_vbox), label36, TRUE, TRUE, 0);
- gtk_label_set_justify (GTK_LABEL (label36), GTK_JUSTIFY_LEFT);
- gtk_misc_set_alignment (GTK_MISC (label36), 0, 1);
- open_notebook = gtk_notebook_new ();
- gtk_widget_ref (open_notebook);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "open_notebook", open_notebook,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (open_notebook);
- gtk_box_pack_start (GTK_BOX (open_vbox), open_notebook, TRUE, TRUE, 0);
- hbox20 = gtk_hbox_new (FALSE, 5);
- gtk_widget_ref (hbox20);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "hbox20", hbox20,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (hbox20);
- gtk_container_add (GTK_CONTAINER (open_notebook), hbox20);
- gtk_container_set_border_width (GTK_CONTAINER (hbox20), 5);
- combo1 = gtk_combo_new ();
- gtk_widget_ref (combo1);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "combo1", combo1,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (combo1);
- gtk_box_pack_start (GTK_BOX (hbox20), combo1, FALSE, TRUE, 0);
- entry_file = GTK_COMBO (combo1)->entry;
- gtk_widget_ref (entry_file);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "entry_file", entry_file,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (entry_file);
- vbox13 = gtk_vbox_new (TRUE, 0);
- gtk_widget_ref (vbox13);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "vbox13", vbox13,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (vbox13);
- gtk_box_pack_start (GTK_BOX (hbox20), vbox13, FALSE, FALSE, 0);
- open_browse = gtk_button_new_with_label (_("Browse..."));
- gtk_widget_ref (open_browse);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "open_browse", open_browse,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (open_browse);
- gtk_box_pack_start (GTK_BOX (vbox13), open_browse, FALSE, FALSE, 0);
- open_file = gtk_label_new (_("File"));
- gtk_widget_ref (open_file);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "open_file", open_file,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (open_file);
- gtk_notebook_set_tab_label (GTK_NOTEBOOK (open_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (open_notebook), 0), open_file);
- table5 = gtk_table_new (5, 2, FALSE);
- gtk_widget_ref (table5);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "table5", table5,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (table5);
- gtk_container_add (GTK_CONTAINER (open_notebook), table5);
- gtk_container_set_border_width (GTK_CONTAINER (table5), 5);
- gtk_table_set_row_spacings (GTK_TABLE (table5), 5);
- gtk_table_set_col_spacings (GTK_TABLE (table5), 5);
- label35 = gtk_label_new (_("Disc type"));
- gtk_widget_ref (label35);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "label35", label35,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (label35);
- gtk_table_attach (GTK_TABLE (table5), label35, 0, 1, 0, 1,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_misc_set_alignment (GTK_MISC (label35), 0, 0.5);
- hbox24 = gtk_hbox_new (FALSE, 0);
- gtk_widget_ref (hbox24);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "hbox24", hbox24,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (hbox24);
- gtk_table_attach (GTK_TABLE (table5), hbox24, 1, 2, 0, 1,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (GTK_FILL), 0, 0);
- disc_dvd = gtk_radio_button_new_with_label (disc_group, _("DVD"));
- disc_group = gtk_radio_button_group (GTK_RADIO_BUTTON (disc_dvd));
- gtk_widget_ref (disc_dvd);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "disc_dvd", disc_dvd,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (disc_dvd);
- gtk_box_pack_start (GTK_BOX (hbox24), disc_dvd, FALSE, FALSE, 0);
- disc_vcd = gtk_radio_button_new_with_label (disc_group, _("VCD"));
- disc_group = gtk_radio_button_group (GTK_RADIO_BUTTON (disc_vcd));
- gtk_widget_ref (disc_vcd);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "disc_vcd", disc_vcd,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (disc_vcd);
- gtk_box_pack_start (GTK_BOX (hbox24), disc_vcd, FALSE, FALSE, 0);
- disc_cdda = gtk_radio_button_new_with_label (disc_group, _("Audio CD"));
- disc_group = gtk_radio_button_group (GTK_RADIO_BUTTON (disc_cdda));
- gtk_widget_ref (disc_cdda);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "disc_cdda", disc_cdda,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (disc_cdda);
- gtk_box_pack_start (GTK_BOX (hbox24), disc_cdda, FALSE, FALSE, 0);
- label19 = gtk_label_new (_("Device name"));
- gtk_widget_ref (label19);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "label19", label19,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (label19);
- gtk_table_attach (GTK_TABLE (table5), label19, 0, 1, 1, 2,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_misc_set_alignment (GTK_MISC (label19), 0, 0.5);
- disc_chapter_label = gtk_label_new (_("Chapter"));
- gtk_widget_ref (disc_chapter_label);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "disc_chapter_label", disc_chapter_label,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (disc_chapter_label);
- gtk_table_attach (GTK_TABLE (table5), disc_chapter_label, 0, 1, 4, 5,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_misc_set_alignment (GTK_MISC (disc_chapter_label), 0, 0.5);
- disc_title_label = gtk_label_new (_("Title"));
- gtk_widget_ref (disc_title_label);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "disc_title_label", disc_title_label,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (disc_title_label);
- gtk_table_attach (GTK_TABLE (table5), disc_title_label, 0, 1, 3, 4,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_misc_set_alignment (GTK_MISC (disc_title_label), 0, 0.5);
- disc_name = gtk_entry_new ();
- gtk_widget_ref (disc_name);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "disc_name", disc_name,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (disc_name);
- gtk_table_attach (GTK_TABLE (table5), disc_name, 1, 2, 1, 2,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_entry_set_text (GTK_ENTRY (disc_name), "/dev/dvd");
- disc_title_adj = gtk_adjustment_new (1, 0, 100, 1, 10, 10);
- disc_title = gtk_spin_button_new (GTK_ADJUSTMENT (disc_title_adj), 1, 0);
- gtk_widget_ref (disc_title);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "disc_title", disc_title,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (disc_title);
- gtk_table_attach (GTK_TABLE (table5), disc_title, 1, 2, 3, 4,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- disc_chapter_adj = gtk_adjustment_new (1, 1, 65536, 1, 10, 10);
- disc_chapter = gtk_spin_button_new (GTK_ADJUSTMENT (disc_chapter_adj), 1, 0);
- gtk_widget_ref (disc_chapter);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "disc_chapter", disc_chapter,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (disc_chapter);
- gtk_table_attach (GTK_TABLE (table5), disc_chapter, 1, 2, 4, 5,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- disc_dvd_use_menu = gtk_check_button_new_with_label (_("Use DVD menus"));
- gtk_widget_ref (disc_dvd_use_menu);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "disc_dvd_use_menu", disc_dvd_use_menu,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (disc_dvd_use_menu);
- gtk_table_attach (GTK_TABLE (table5), disc_dvd_use_menu, 1, 2, 2, 3,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- open_disc = gtk_label_new (_("Disc"));
- gtk_widget_ref (open_disc);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "open_disc", open_disc,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (open_disc);
- gtk_notebook_set_tab_label (GTK_NOTEBOOK (open_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (open_notebook), 1), open_disc);
- table4 = gtk_table_new (3, 6, FALSE);
- gtk_widget_ref (table4);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "table4", table4,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (table4);
- gtk_container_add (GTK_CONTAINER (open_notebook), table4);
- gtk_container_set_border_width (GTK_CONTAINER (table4), 5);
- gtk_table_set_row_spacings (GTK_TABLE (table4), 5);
- gtk_table_set_col_spacings (GTK_TABLE (table4), 5);
- network_udp = gtk_radio_button_new_with_label (table4_group, _("UDP/RTP"));
- table4_group = gtk_radio_button_group (GTK_RADIO_BUTTON (network_udp));
- gtk_widget_ref (network_udp);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "network_udp", network_udp,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (network_udp);
- gtk_table_attach (GTK_TABLE (table4), network_udp, 0, 1, 0, 1,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- network_multicast = gtk_radio_button_new_with_label (table4_group, _("UDP/RTP Multicast"));
- table4_group = gtk_radio_button_group (GTK_RADIO_BUTTON (network_multicast));
- gtk_widget_ref (network_multicast);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "network_multicast", network_multicast,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (network_multicast);
- gtk_table_attach (GTK_TABLE (table4), network_multicast, 0, 1, 1, 2,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- network_http = gtk_radio_button_new_with_label (table4_group, _("HTTP/FTP/MMS"));
- table4_group = gtk_radio_button_group (GTK_RADIO_BUTTON (network_http));
- gtk_widget_ref (network_http);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "network_http", network_http,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (network_http);
- gtk_table_attach (GTK_TABLE (table4), network_http, 0, 1, 2, 3,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- network_udp_port_label = gtk_label_new (_("Port"));
- gtk_widget_ref (network_udp_port_label);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "network_udp_port_label", network_udp_port_label,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (network_udp_port_label);
- gtk_table_attach (GTK_TABLE (table4), network_udp_port_label, 1, 2, 0, 1,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_misc_set_alignment (GTK_MISC (network_udp_port_label), 1, 0.5);
- network_multicast_address_label = gtk_label_new (_("Address"));
- gtk_widget_ref (network_multicast_address_label);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "network_multicast_address_label", network_multicast_address_label,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (network_multicast_address_label);
- gtk_table_attach (GTK_TABLE (table4), network_multicast_address_label, 1, 2, 1, 2,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_widget_set_sensitive (network_multicast_address_label, FALSE);
- gtk_label_set_justify (GTK_LABEL (network_multicast_address_label), GTK_JUSTIFY_RIGHT);
- gtk_misc_set_alignment (GTK_MISC (network_multicast_address_label), 1, 0.5);
- network_http_url_label = gtk_label_new (_("URL"));
- gtk_widget_ref (network_http_url_label);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "network_http_url_label", network_http_url_label,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (network_http_url_label);
- gtk_table_attach (GTK_TABLE (table4), network_http_url_label, 1, 2, 2, 3,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_widget_set_sensitive (network_http_url_label, FALSE);
- gtk_misc_set_alignment (GTK_MISC (network_http_url_label), 1, 0.5);
- network_multicast_address_combo = gtk_combo_new ();
- gtk_widget_ref (network_multicast_address_combo);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "network_multicast_address_combo", network_multicast_address_combo,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (network_multicast_address_combo);
- gtk_table_attach (GTK_TABLE (table4), network_multicast_address_combo, 2, 4, 1, 2,
- (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_widget_set_sensitive (network_multicast_address_combo, FALSE);
- network_multicast_address = GTK_COMBO (network_multicast_address_combo)->entry;
- gtk_widget_ref (network_multicast_address);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "network_multicast_address", network_multicast_address,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (network_multicast_address);
- network_multicast_port_label = gtk_label_new (_("Port"));
- gtk_widget_ref (network_multicast_port_label);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "network_multicast_port_label", network_multicast_port_label,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (network_multicast_port_label);
- gtk_table_attach (GTK_TABLE (table4), network_multicast_port_label, 4, 5, 1, 2,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_widget_set_sensitive (network_multicast_port_label, FALSE);
- gtk_misc_set_alignment (GTK_MISC (network_multicast_port_label), 1, 0.5);
- network_multicast_port_adj = gtk_adjustment_new (1234, 0, 65535, 1, 10, 10);
- network_multicast_port = gtk_spin_button_new (GTK_ADJUSTMENT (network_multicast_port_adj), 1, 0);
- gtk_widget_ref (network_multicast_port);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "network_multicast_port", network_multicast_port,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (network_multicast_port);
- gtk_table_attach (GTK_TABLE (table4), network_multicast_port, 5, 6, 1, 2,
- (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_widget_set_usize (network_multicast_port, 75, -2);
- gtk_widget_set_sensitive (network_multicast_port, FALSE);
- network_http_url = gtk_entry_new ();
- gtk_widget_ref (network_http_url);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "network_http_url", network_http_url,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (network_http_url);
- gtk_table_attach (GTK_TABLE (table4), network_http_url, 2, 6, 2, 3,
- (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_widget_set_sensitive (network_http_url, FALSE);
- network_udp_port_adj = gtk_adjustment_new (1234, 0, 65535, 1, 10, 10);
- network_udp_port = gtk_spin_button_new (GTK_ADJUSTMENT (network_udp_port_adj), 1, 0);
- gtk_widget_ref (network_udp_port);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "network_udp_port", network_udp_port,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (network_udp_port);
- gtk_table_attach (GTK_TABLE (table4), network_udp_port, 2, 3, 0, 1,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_widget_set_usize (network_udp_port, 1, -2);
- open_net = gtk_label_new (_("Network"));
- gtk_widget_ref (open_net);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "open_net", open_net,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (open_net);
- gtk_notebook_set_tab_label (GTK_NOTEBOOK (open_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (open_notebook), 2), open_net);
- table3 = gtk_table_new (4, 2, FALSE);
- gtk_widget_ref (table3);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "table3", table3,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (table3);
- gtk_container_add (GTK_CONTAINER (open_notebook), table3);
- gtk_container_set_border_width (GTK_CONTAINER (table3), 5);
- gtk_table_set_row_spacings (GTK_TABLE (table3), 5);
- gtk_table_set_col_spacings (GTK_TABLE (table3), 5);
- label24 = gtk_label_new (_("Symbol Rate"));
- gtk_widget_ref (label24);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "label24", label24,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (label24);
- gtk_table_attach (GTK_TABLE (table3), label24, 0, 1, 1, 2,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_misc_set_alignment (GTK_MISC (label24), 0, 0.5);
- label25 = gtk_label_new (_("Frequency"));
- gtk_widget_ref (label25);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "label25", label25,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (label25);
- gtk_table_attach (GTK_TABLE (table3), label25, 0, 1, 0, 1,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_misc_set_alignment (GTK_MISC (label25), 0, 0.5);
- label26 = gtk_label_new (_("Polarization"));
- gtk_widget_ref (label26);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "label26", label26,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (label26);
- gtk_table_attach (GTK_TABLE (table3), label26, 0, 1, 2, 3,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_misc_set_alignment (GTK_MISC (label26), 0, 0.5);
- sat_freq_adj = gtk_adjustment_new (1.1954e+07, 1e+07, 1.2999e+07, 1, 10, 10);
- sat_freq = gtk_spin_button_new (GTK_ADJUSTMENT (sat_freq_adj), 1, 0);
- gtk_widget_ref (sat_freq);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "sat_freq", sat_freq,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (sat_freq);
- gtk_table_attach (GTK_TABLE (table3), sat_freq, 1, 2, 0, 1,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- label27 = gtk_label_new (_("FEC"));
- gtk_widget_ref (label27);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "label27", label27,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (label27);
- gtk_table_attach (GTK_TABLE (table3), label27, 0, 1, 3, 4,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_misc_set_alignment (GTK_MISC (label27), 0, 0.5);
- hbox23 = gtk_hbox_new (FALSE, 0);
- gtk_widget_ref (hbox23);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "hbox23", hbox23,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (hbox23);
- gtk_table_attach (GTK_TABLE (table3), hbox23, 1, 2, 2, 3,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (GTK_FILL), 0, 0);
- sat_pol_vert = gtk_radio_button_new_with_label (pol_group, _("Vertical"));
- pol_group = gtk_radio_button_group (GTK_RADIO_BUTTON (sat_pol_vert));
- gtk_widget_ref (sat_pol_vert);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "sat_pol_vert", sat_pol_vert,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (sat_pol_vert);
- gtk_box_pack_start (GTK_BOX (hbox23), sat_pol_vert, FALSE, FALSE, 0);
- sat_pol_hor = gtk_radio_button_new_with_label (pol_group, _("Horizontal"));
- pol_group = gtk_radio_button_group (GTK_RADIO_BUTTON (sat_pol_hor));
- gtk_widget_ref (sat_pol_hor);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "sat_pol_hor", sat_pol_hor,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (sat_pol_hor);
- gtk_box_pack_start (GTK_BOX (hbox23), sat_pol_hor, FALSE, FALSE, 0);
- sat_srate_adj = gtk_adjustment_new (2.75e+07, 1e+06, 3e+07, 1, 10, 10);
- sat_srate = gtk_spin_button_new (GTK_ADJUSTMENT (sat_srate_adj), 1, 0);
- gtk_widget_ref (sat_srate);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "sat_srate", sat_srate,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (sat_srate);
- gtk_table_attach (GTK_TABLE (table3), sat_srate, 1, 2, 1, 2,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- sat_fec = gtk_combo_new ();
- gtk_widget_ref (sat_fec);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "sat_fec", sat_fec,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (sat_fec);
- gtk_table_attach (GTK_TABLE (table3), sat_fec, 1, 2, 3, 4,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- sat_fec_items = g_list_append (sat_fec_items, (gpointer) "1/2");
- sat_fec_items = g_list_append (sat_fec_items, (gpointer) "2/3");
- sat_fec_items = g_list_append (sat_fec_items, (gpointer) "3/4");
- sat_fec_items = g_list_append (sat_fec_items, (gpointer) "4/5");
- sat_fec_items = g_list_append (sat_fec_items, (gpointer) "5/6");
- sat_fec_items = g_list_append (sat_fec_items, (gpointer) "7/8");
- gtk_combo_set_popdown_strings (GTK_COMBO (sat_fec), sat_fec_items);
- g_list_free (sat_fec_items);
- combo_entry1 = GTK_COMBO (sat_fec)->entry;
- gtk_widget_ref (combo_entry1);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "combo_entry1", combo_entry1,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (combo_entry1);
- gtk_entry_set_text (GTK_ENTRY (combo_entry1), "3/4");
- open_sat = gtk_label_new (_("Satellite"));
- gtk_widget_ref (open_sat);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "open_sat", open_sat,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (open_sat);
- gtk_notebook_set_tab_label (GTK_NOTEBOOK (open_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (open_notebook), 3), open_sat);
- show_subtitle = gtk_check_button_new_with_label (_("Subtitle"));
- gtk_widget_ref (show_subtitle);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "show_subtitle", show_subtitle,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (show_subtitle);
- gtk_box_pack_start (GTK_BOX (open_vbox), show_subtitle, FALSE, FALSE, 0);
- gtk_tooltips_set_tip (tooltips, show_subtitle, _("Use a subtitles file"), NULL);
- hbox_subtitle = gtk_hbox_new (FALSE, 5);
- gtk_widget_ref (hbox_subtitle);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "hbox_subtitle", hbox_subtitle,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (hbox_subtitle);
- gtk_box_pack_start (GTK_BOX (open_vbox), hbox_subtitle, TRUE, TRUE, 0);
- gtk_container_set_border_width (GTK_CONTAINER (hbox_subtitle), 5);
- combo3 = gtk_combo_new ();
- gtk_widget_ref (combo3);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "combo3", combo3,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (combo3);
- gtk_box_pack_start (GTK_BOX (hbox_subtitle), combo3, FALSE, TRUE, 0);
- entry_subtitle = GTK_COMBO (combo3)->entry;
- gtk_widget_ref (entry_subtitle);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "entry_subtitle", entry_subtitle,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (entry_subtitle);
- gtk_tooltips_set_tip (tooltips, entry_subtitle, _("Select a subtitles file"), NULL);
- vbox14 = gtk_vbox_new (TRUE, 0);
- gtk_widget_ref (vbox14);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "vbox14", vbox14,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (vbox14);
- gtk_box_pack_start (GTK_BOX (hbox_subtitle), vbox14, FALSE, FALSE, 0);
- open_browse_subtitle = gtk_button_new_with_label (_("Browse..."));
- gtk_widget_ref (open_browse_subtitle);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "open_browse_subtitle", open_browse_subtitle,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (open_browse_subtitle);
- gtk_box_pack_start (GTK_BOX (vbox14), open_browse_subtitle, FALSE, FALSE, 0);
- label37 = gtk_label_new (_("delay"));
- gtk_widget_ref (label37);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "label37", label37,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (label37);
- gtk_box_pack_start (GTK_BOX (hbox_subtitle), label37, TRUE, TRUE, 0);
- subtitle_delay_adj = gtk_adjustment_new (0, -1000, 1000, 0.1, 10, 10);
- subtitle_delay = gtk_spin_button_new (GTK_ADJUSTMENT (subtitle_delay_adj), 1, 1);
- gtk_widget_ref (subtitle_delay);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "subtitle_delay", subtitle_delay,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (subtitle_delay);
- gtk_box_pack_start (GTK_BOX (hbox_subtitle), subtitle_delay, TRUE, TRUE, 0);
- gtk_tooltips_set_tip (tooltips, subtitle_delay, _("Set the delay (in seconds)"), NULL);
- label3 = gtk_label_new (_("fps"));
- gtk_widget_ref (label3);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "label3", label3,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (label3);
- gtk_box_pack_start (GTK_BOX (hbox_subtitle), label3, TRUE, TRUE, 0);
- subtitle_fps_adj = gtk_adjustment_new (0, 0, 100, 0.1, 10, 10);
- subtitle_fps = gtk_spin_button_new (GTK_ADJUSTMENT (subtitle_fps_adj), 1, 1);
- gtk_widget_ref (subtitle_fps);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "subtitle_fps", subtitle_fps,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (subtitle_fps);
- gtk_box_pack_start (GTK_BOX (hbox_subtitle), subtitle_fps, TRUE, TRUE, 0);
- gtk_tooltips_set_tip (tooltips, subtitle_fps, _("Set the number of Frames Per Second"), NULL);
- hbox30 = gtk_hbox_new (FALSE, 0);
- gtk_widget_ref (hbox30);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "hbox30", hbox30,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (hbox30);
- gtk_box_pack_start (GTK_BOX (dialog_vbox7), hbox30, FALSE, FALSE, 3);
- show_sout_settings = gtk_check_button_new_with_label (_("Stream output"));
- gtk_widget_ref (show_sout_settings);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "show_sout_settings", show_sout_settings,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (show_sout_settings);
- gtk_box_pack_start (GTK_BOX (hbox30), show_sout_settings, FALSE, FALSE, 0);
- gtk_tooltips_set_tip (tooltips, show_sout_settings, _("Use stream output"), NULL);
- sout_settings = gtk_button_new_with_label (_("Settings..."));
- gtk_widget_ref (sout_settings);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "sout_settings", sout_settings,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (sout_settings);
- gtk_box_pack_start (GTK_BOX (hbox30), sout_settings, FALSE, FALSE, 20);
- gtk_tooltips_set_tip (tooltips, sout_settings, _("Stream output configuration "), NULL);
- dialog_action_area6 = GTK_DIALOG (intf_open)->action_area;
- gtk_object_set_data (GTK_OBJECT (intf_open), "dialog_action_area6", dialog_action_area6);
- gtk_widget_show (dialog_action_area6);
- gtk_container_set_border_width (GTK_CONTAINER (dialog_action_area6), 5);
- hbox18 = gtk_hbox_new (TRUE, 5);
- gtk_widget_ref (hbox18);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "hbox18", hbox18,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (hbox18);
- gtk_box_pack_start (GTK_BOX (dialog_action_area6), hbox18, TRUE, TRUE, 0);
- hbox19 = gtk_hbox_new (TRUE, 5);
- gtk_widget_ref (hbox19);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "hbox19", hbox19,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (hbox19);
- gtk_box_pack_end (GTK_BOX (hbox18), hbox19, FALSE, TRUE, 0);
- open_ok = gtk_button_new_with_label (_("OK"));
- gtk_widget_ref (open_ok);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "open_ok", open_ok,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (open_ok);
- gtk_box_pack_start (GTK_BOX (hbox19), open_ok, FALSE, TRUE, 0);
- open_cancel = gtk_button_new_with_label (_("Cancel"));
- gtk_widget_ref (open_cancel);
- gtk_object_set_data_full (GTK_OBJECT (intf_open), "open_cancel", open_cancel,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (open_cancel);
- gtk_box_pack_start (GTK_BOX (hbox19), open_cancel, FALSE, TRUE, 0);
- gtk_widget_add_accelerator (open_cancel, "clicked", accel_group,
- GDK_Escape, 0,
- GTK_ACCEL_VISIBLE);
- gtk_signal_connect (GTK_OBJECT (intf_open), "delete_event",
- GTK_SIGNAL_FUNC (gtk_widget_hide),
- NULL);
- gtk_signal_connect_after (GTK_OBJECT (open_notebook), "switch_page",
- GTK_SIGNAL_FUNC (GtkOpenNotebookChanged),
- NULL);
- gtk_signal_connect (GTK_OBJECT (entry_file), "changed",
- GTK_SIGNAL_FUNC (GtkOpenChanged),
- NULL);
- gtk_signal_connect (GTK_OBJECT (open_browse), "clicked",
- GTK_SIGNAL_FUNC (GtkFileShow),
- "entry_file");
- gtk_signal_connect (GTK_OBJECT (disc_dvd), "toggled",
- GTK_SIGNAL_FUNC (GtkDiscOpenDvd),
- NULL);
- gtk_signal_connect (GTK_OBJECT (disc_vcd), "toggled",
- GTK_SIGNAL_FUNC (GtkDiscOpenVcd),
- NULL);
- gtk_signal_connect (GTK_OBJECT (disc_cdda), "toggled",
- GTK_SIGNAL_FUNC (GtkDiscOpenCDDA),
- NULL);
- gtk_signal_connect (GTK_OBJECT (disc_name), "changed",
- GTK_SIGNAL_FUNC (GtkOpenChanged),
- NULL);
- gtk_signal_connect (GTK_OBJECT (disc_title), "changed",
- GTK_SIGNAL_FUNC (GtkOpenChanged),
- NULL);
- gtk_signal_connect (GTK_OBJECT (disc_chapter), "changed",
- GTK_SIGNAL_FUNC (GtkOpenChanged),
- NULL);
- gtk_signal_connect (GTK_OBJECT (disc_dvd_use_menu), "toggled",
- GTK_SIGNAL_FUNC (GtkOpenChanged),
- NULL);
- gtk_signal_connect (GTK_OBJECT (network_udp), "toggled",
- GTK_SIGNAL_FUNC (GtkNetworkOpenUDP),
- NULL);
- gtk_signal_connect (GTK_OBJECT (network_multicast), "toggled",
- GTK_SIGNAL_FUNC (GtkNetworkOpenMulticast),
- NULL);
- gtk_signal_connect (GTK_OBJECT (network_http), "toggled",
- GTK_SIGNAL_FUNC (GtkNetworkOpenHTTP),
- NULL);
- gtk_signal_connect (GTK_OBJECT (network_multicast_address), "changed",
- GTK_SIGNAL_FUNC (GtkOpenChanged),
- NULL);
- gtk_signal_connect (GTK_OBJECT (network_multicast_port), "changed",
- GTK_SIGNAL_FUNC (GtkOpenChanged),
- NULL);
- gtk_signal_connect (GTK_OBJECT (network_http_url), "changed",
- GTK_SIGNAL_FUNC (GtkOpenChanged),
- NULL);
- gtk_signal_connect (GTK_OBJECT (network_udp_port), "changed",
- GTK_SIGNAL_FUNC (GtkOpenChanged),
- NULL);
- gtk_signal_connect (GTK_OBJECT (sat_freq), "changed",
- GTK_SIGNAL_FUNC (GtkOpenChanged),
- NULL);
- gtk_signal_connect (GTK_OBJECT (sat_pol_vert), "toggled",
- GTK_SIGNAL_FUNC (GtkSatOpenToggle),
- NULL);
- gtk_signal_connect (GTK_OBJECT (sat_pol_hor), "toggled",
- GTK_SIGNAL_FUNC (GtkSatOpenToggle),
- NULL);
- gtk_signal_connect (GTK_OBJECT (sat_srate), "changed",
- GTK_SIGNAL_FUNC (GtkOpenChanged),
- NULL);
- gtk_signal_connect (GTK_OBJECT (combo_entry1), "changed",
- GTK_SIGNAL_FUNC (GtkOpenChanged),
- NULL);
- gtk_signal_connect (GTK_OBJECT (show_subtitle), "clicked",
- GTK_SIGNAL_FUNC (GtkOpenSubtitleShow),
- NULL);
- gtk_signal_connect (GTK_OBJECT (entry_subtitle), "changed",
- GTK_SIGNAL_FUNC (GtkOpenChanged),
- NULL);
- gtk_signal_connect (GTK_OBJECT (open_browse_subtitle), "clicked",
- GTK_SIGNAL_FUNC (GtkFileShow),
- "entry_subtitle");
- gtk_signal_connect (GTK_OBJECT (subtitle_delay), "changed",
- GTK_SIGNAL_FUNC (GtkOpenChanged),
- NULL);
- gtk_signal_connect (GTK_OBJECT (show_sout_settings), "clicked",
- GTK_SIGNAL_FUNC (GtkOpenSoutShow),
- NULL);
- gtk_signal_connect (GTK_OBJECT (sout_settings), "clicked",
- GTK_SIGNAL_FUNC (GtkSoutSettings),
- NULL);
- gtk_signal_connect (GTK_OBJECT (open_ok), "clicked",
- GTK_SIGNAL_FUNC (GtkOpenOk),
- NULL);
- gtk_signal_connect (GTK_OBJECT (open_cancel), "clicked",
- GTK_SIGNAL_FUNC (GtkOpenCancel),
- NULL);
- gtk_object_set_data (GTK_OBJECT (intf_open), "tooltips", tooltips);
- gtk_window_add_accel_group (GTK_WINDOW (intf_open), accel_group);
- return intf_open;
- }
- GtkWidget*
- create_intf_file (void)
- {
- GtkWidget *intf_file;
- GtkWidget *file_ok;
- GtkWidget *file_cancel;
- intf_file = gtk_file_selection_new (_("Select File"));
- gtk_object_set_data (GTK_OBJECT (intf_file), "intf_file", intf_file);
- gtk_container_set_border_width (GTK_CONTAINER (intf_file), 10);
- gtk_window_set_modal (GTK_WINDOW (intf_file), TRUE);
- file_ok = GTK_FILE_SELECTION (intf_file)->ok_button;
- gtk_object_set_data (GTK_OBJECT (intf_file), "file_ok", file_ok);
- gtk_widget_show (file_ok);
- GTK_WIDGET_SET_FLAGS (file_ok, GTK_CAN_DEFAULT);
- file_cancel = GTK_FILE_SELECTION (intf_file)->cancel_button;
- gtk_object_set_data (GTK_OBJECT (intf_file), "file_cancel", file_cancel);
- gtk_widget_show (file_cancel);
- GTK_WIDGET_SET_FLAGS (file_cancel, GTK_CAN_DEFAULT);
- gtk_signal_connect (GTK_OBJECT (file_ok), "clicked",
- GTK_SIGNAL_FUNC (GtkFileOk),
- NULL);
- gtk_signal_connect (GTK_OBJECT (file_cancel), "clicked",
- GTK_SIGNAL_FUNC (GtkFileCancel),
- NULL);
- return intf_file;
- }
- GtkWidget*
- create_intf_jump (void)
- {
- GtkWidget *intf_jump;
- GtkWidget *dialog_vbox3;
- GtkWidget *jump_frame;
- GtkWidget *hbox13;
- GtkWidget *jump_second_label;
- GtkObject *jump_second_spinbutton_adj;
- GtkWidget *jump_second_spinbutton;
- GtkWidget *jump_minute_label;
- GtkObject *jump_minute_spinbutton_adj;
- GtkWidget *jump_minute_spinbutton;
- GtkWidget *jump_hour_label;
- GtkObject *jump_hour_spinbutton_adj;
- GtkWidget *jump_hour_spinbutton;
- GtkWidget *dialog_action_area2;
- GtkWidget *jump_ok_button;
- GtkWidget *jump_cancel_button;
- intf_jump = gtk_dialog_new ();
- gtk_object_set_data (GTK_OBJECT (intf_jump), "intf_jump", intf_jump);
- gtk_window_set_title (GTK_WINDOW (intf_jump), _("Jump"));
- gtk_window_set_policy (GTK_WINDOW (intf_jump), TRUE, TRUE, FALSE);
- dialog_vbox3 = GTK_DIALOG (intf_jump)->vbox;
- gtk_object_set_data (GTK_OBJECT (intf_jump), "dialog_vbox3", dialog_vbox3);
- gtk_widget_show (dialog_vbox3);
- jump_frame = gtk_frame_new (_("Go To:"));
- gtk_widget_ref (jump_frame);
- gtk_object_set_data_full (GTK_OBJECT (intf_jump), "jump_frame", jump_frame,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (jump_frame);
- gtk_box_pack_start (GTK_BOX (dialog_vbox3), jump_frame, TRUE, TRUE, 0);
- gtk_container_set_border_width (GTK_CONTAINER (jump_frame), 5);
- gtk_frame_set_label_align (GTK_FRAME (jump_frame), 0.05, 0.5);
- hbox13 = gtk_hbox_new (FALSE, 0);
- gtk_widget_ref (hbox13);
- gtk_object_set_data_full (GTK_OBJECT (intf_jump), "hbox13", hbox13,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (hbox13);
- gtk_container_add (GTK_CONTAINER (jump_frame), hbox13);
- jump_second_label = gtk_label_new (_("s."));
- gtk_widget_ref (jump_second_label);
- gtk_object_set_data_full (GTK_OBJECT (intf_jump), "jump_second_label", jump_second_label,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (jump_second_label);
- gtk_box_pack_end (GTK_BOX (hbox13), jump_second_label, FALSE, FALSE, 5);
- jump_second_spinbutton_adj = gtk_adjustment_new (0, 0, 60, 1, 10, 10);
- jump_second_spinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (jump_second_spinbutton_adj), 1, 0);
- gtk_widget_ref (jump_second_spinbutton);
- gtk_object_set_data_full (GTK_OBJECT (intf_jump), "jump_second_spinbutton", jump_second_spinbutton,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (jump_second_spinbutton);
- gtk_box_pack_end (GTK_BOX (hbox13), jump_second_spinbutton, FALSE, TRUE, 0);
- jump_minute_label = gtk_label_new (_("m:"));
- gtk_widget_ref (jump_minute_label);
- gtk_object_set_data_full (GTK_OBJECT (intf_jump), "jump_minute_label", jump_minute_label,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (jump_minute_label);
- gtk_box_pack_end (GTK_BOX (hbox13), jump_minute_label, FALSE, FALSE, 5);
- jump_minute_spinbutton_adj = gtk_adjustment_new (0, 0, 60, 1, 10, 10);
- jump_minute_spinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (jump_minute_spinbutton_adj), 1, 0);
- gtk_widget_ref (jump_minute_spinbutton);
- gtk_object_set_data_full (GTK_OBJECT (intf_jump), "jump_minute_spinbutton", jump_minute_spinbutton,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (jump_minute_spinbutton);
- gtk_box_pack_end (GTK_BOX (hbox13), jump_minute_spinbutton, FALSE, TRUE, 0);
- jump_hour_label = gtk_label_new (_("h:"));
- gtk_widget_ref (jump_hour_label);
- gtk_object_set_data_full (GTK_OBJECT (intf_jump), "jump_hour_label", jump_hour_label,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (jump_hour_label);
- gtk_box_pack_end (GTK_BOX (hbox13), jump_hour_label, FALSE, FALSE, 5);
- jump_hour_spinbutton_adj = gtk_adjustment_new (0, 0, 12, 1, 10, 10);
- jump_hour_spinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (jump_hour_spinbutton_adj), 1, 0);
- gtk_widget_ref (jump_hour_spinbutton);
- gtk_object_set_data_full (GTK_OBJECT (intf_jump), "jump_hour_spinbutton", jump_hour_spinbutton,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (jump_hour_spinbutton);
- gtk_box_pack_end (GTK_BOX (hbox13), jump_hour_spinbutton, FALSE, TRUE, 0);
- dialog_action_area2 = GTK_DIALOG (intf_jump)->action_area;
- gtk_object_set_data (GTK_OBJECT (intf_jump), "dialog_action_area2", dialog_action_area2);
- gtk_widget_show (dialog_action_area2);
- gtk_container_set_border_width (GTK_CONTAINER (dialog_action_area2), 10);
- jump_ok_button = gtk_button_new_with_label (_("OK"));
- gtk_widget_ref (jump_ok_button);
- gtk_object_set_data_full (GTK_OBJECT (intf_jump), "jump_ok_button", jump_ok_button,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (jump_ok_button);
- gtk_box_pack_start (GTK_BOX (dialog_action_area2), jump_ok_button, TRUE, TRUE, 0);
- jump_cancel_button = gtk_button_new_with_label (_("Cancel"));
- gtk_widget_ref (jump_cancel_button);
- gtk_object_set_data_full (GTK_OBJECT (intf_jump), "jump_cancel_button", jump_cancel_button,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (jump_cancel_button);
- gtk_box_pack_start (GTK_BOX (dialog_action_area2), jump_cancel_button, TRUE, TRUE, 0);
- gtk_signal_connect (GTK_OBJECT (jump_ok_button), "clicked",
- GTK_SIGNAL_FUNC (GtkJumpOk),
- NULL);
- gtk_signal_connect (GTK_OBJECT (jump_cancel_button), "clicked",
- GTK_SIGNAL_FUNC (GtkJumpCancel),
- NULL);
- return intf_jump;
- }
- GtkWidget*
- create_intf_playlist (void)
- {
- GtkWidget *intf_playlist;
- GtkWidget *dialog_vbox4;
- GtkWidget *playlist_menubar;
- GtkWidget *playlist_add;
- GtkWidget *playlist_add_menu;
- GtkAccelGroup *playlist_add_menu_accels;
- GtkWidget *playlist_add_disc;
- GtkWidget *playlist_add_file;
- GtkWidget *playlist_add_network;
- GtkWidget *playlist_add_url;
- GtkWidget *playlist_delete;
- GtkWidget *playlist_delete_menu;
- GtkAccelGroup *playlist_delete_menu_accels;
- GtkWidget *playlist_delete_all;
- GtkWidget *playlist_delete_selected;
- GtkWidget *playlist_selection;
- GtkWidget *playlist_selection_menu;
- GtkAccelGroup *playlist_selection_menu_accels;
- guint tmp_key;
- GtkWidget *playlist_selection_crop;
- GtkWidget *playlist_selection_invert;
- GtkWidget *playlist_selection_select;
- GtkWidget *scrolledwindow1;
- GtkWidget *playlist_clist;
- GtkWidget *label22;
- GtkWidget *label23;
- GtkWidget *dialog_action_area3;
- GtkWidget *playlist_ok_button;
- GtkWidget *playlist_cancel_button;
- intf_playlist = gtk_dialog_new ();
- gtk_object_set_data (GTK_OBJECT (intf_playlist), "intf_playlist", intf_playlist);
- gtk_window_set_title (GTK_WINDOW (intf_playlist), _("Playlist"));
- gtk_window_set_default_size (GTK_WINDOW (intf_playlist), 400, 300);
- gtk_window_set_policy (GTK_WINDOW (intf_playlist), TRUE, TRUE, FALSE);
- dialog_vbox4 = GTK_DIALOG (intf_playlist)->vbox;
- gtk_object_set_data (GTK_OBJECT (intf_playlist), "dialog_vbox4", dialog_vbox4);
- gtk_widget_show (dialog_vbox4);
- playlist_menubar = gtk_menu_bar_new ();
- gtk_widget_ref (playlist_menubar);
- gtk_object_set_data_full (GTK_OBJECT (intf_playlist), "playlist_menubar", playlist_menubar,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (playlist_menubar);
- gtk_box_pack_start (GTK_BOX (dialog_vbox4), playlist_menubar, FALSE, FALSE, 0);
- playlist_add = gtk_menu_item_new_with_label (_("Add"));
- gtk_widget_ref (playlist_add);
- gtk_object_set_data_full (GTK_OBJECT (intf_playlist), "playlist_add", playlist_add,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (playlist_add);
- gtk_container_add (GTK_CONTAINER (playlist_menubar), playlist_add);
- playlist_add_menu = gtk_menu_new ();
- gtk_widget_ref (playlist_add_menu);
- gtk_object_set_data_full (GTK_OBJECT (intf_playlist), "playlist_add_menu", playlist_add_menu,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_menu_item_set_submenu (GTK_MENU_ITEM (playlist_add), playlist_add_menu);
- playlist_add_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (playlist_add_menu));
- playlist_add_disc = gtk_menu_item_new_with_label (_("Disc"));
- gtk_widget_ref (playlist_add_disc);
- gtk_object_set_data_full (GTK_OBJECT (intf_playlist), "playlist_add_disc", playlist_add_disc,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (playlist_add_disc);
- gtk_container_add (GTK_CONTAINER (playlist_add_menu), playlist_add_disc);
- playlist_add_file = gtk_menu_item_new_with_label (_("File"));
- gtk_widget_ref (playlist_add_file);
- gtk_object_set_data_full (GTK_OBJECT (intf_playlist), "playlist_add_file", playlist_add_file,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (playlist_add_file);
- gtk_container_add (GTK_CONTAINER (playlist_add_menu), playlist_add_file);
- playlist_add_network = gtk_menu_item_new_with_label (_("Network"));
- gtk_widget_ref (playlist_add_network);
- gtk_object_set_data_full (GTK_OBJECT (intf_playlist), "playlist_add_network", playlist_add_network,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (playlist_add_network);
- gtk_container_add (GTK_CONTAINER (playlist_add_menu), playlist_add_network);
- playlist_add_url = gtk_menu_item_new_with_label (_("URL"));
- gtk_widget_ref (playlist_add_url);
- gtk_object_set_data_full (GTK_OBJECT (intf_playlist), "playlist_add_url", playlist_add_url,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (playlist_add_url);
- gtk_container_add (GTK_CONTAINER (playlist_add_menu), playlist_add_url);
- playlist_delete = gtk_menu_item_new_with_label (_("Delete"));
- gtk_widget_ref (playlist_delete);
- gtk_object_set_data_full (GTK_OBJECT (intf_playlist), "playlist_delete", playlist_delete,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (playlist_delete);
- gtk_container_add (GTK_CONTAINER (playlist_menubar), playlist_delete);
- playlist_delete_menu = gtk_menu_new ();
- gtk_widget_ref (playlist_delete_menu);
- gtk_object_set_data_full (GTK_OBJECT (intf_playlist), "playlist_delete_menu", playlist_delete_menu,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_menu_item_set_submenu (GTK_MENU_ITEM (playlist_delete), playlist_delete_menu);
- playlist_delete_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (playlist_delete_menu));
- playlist_delete_all = gtk_menu_item_new_with_label (_("All"));
- gtk_widget_ref (playlist_delete_all);
- gtk_object_set_data_full (GTK_OBJECT (intf_playlist), "playlist_delete_all", playlist_delete_all,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (playlist_delete_all);
- gtk_container_add (GTK_CONTAINER (playlist_delete_menu), playlist_delete_all);
- playlist_delete_selected = gtk_menu_item_new_with_label (_("Selected"));
- gtk_widget_ref (playlist_delete_selected);
- gtk_object_set_data_full (GTK_OBJECT (intf_playlist), "playlist_delete_selected", playlist_delete_selected,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (playlist_delete_selected);
- gtk_container_add (GTK_CONTAINER (playlist_delete_menu), playlist_delete_selected);
- playlist_selection = gtk_menu_item_new_with_label (_("Selection"));
- gtk_widget_ref (playlist_selection);
- gtk_object_set_data_full (GTK_OBJECT (intf_playlist), "playlist_selection", playlist_selection,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (playlist_selection);
- gtk_container_add (GTK_CONTAINER (playlist_menubar), playlist_selection);
- playlist_selection_menu = gtk_menu_new ();
- gtk_widget_ref (playlist_selection_menu);
- gtk_object_set_data_full (GTK_OBJECT (intf_playlist), "playlist_selection_menu", playlist_selection_menu,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_menu_item_set_submenu (GTK_MENU_ITEM (playlist_selection), playlist_selection_menu);
- playlist_selection_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (playlist_selection_menu));
- playlist_selection_crop = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (playlist_selection_crop)->child),
- _("_Crop"));
- gtk_widget_add_accelerator (playlist_selection_crop, "activate_item", playlist_selection_menu_accels,
- tmp_key, 0, 0);
- gtk_widget_ref (playlist_selection_crop);
- gtk_object_set_data_full (GTK_OBJECT (intf_playlist), "playlist_selection_crop", playlist_selection_crop,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (playlist_selection_crop);
- gtk_container_add (GTK_CONTAINER (playlist_selection_menu), playlist_selection_crop);
- playlist_selection_invert = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (playlist_selection_invert)->child),
- _("_Invert"));
- gtk_widget_add_accelerator (playlist_selection_invert, "activate_item", playlist_selection_menu_accels,
- tmp_key, 0, 0);
- gtk_widget_ref (playlist_selection_invert);
- gtk_object_set_data_full (GTK_OBJECT (intf_playlist), "playlist_selection_invert", playlist_selection_invert,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (playlist_selection_invert);
- gtk_container_add (GTK_CONTAINER (playlist_selection_menu), playlist_selection_invert);
- playlist_selection_select = gtk_menu_item_new_with_label ("");
- tmp_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (playlist_selection_select)->child),
- _("_Select"));
- gtk_widget_add_accelerator (playlist_selection_select, "activate_item", playlist_selection_menu_accels,
- tmp_key, 0, 0);
- gtk_widget_ref (playlist_selection_select);
- gtk_object_set_data_full (GTK_OBJECT (intf_playlist), "playlist_selection_select", playlist_selection_select,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (playlist_selection_select);
- gtk_container_add (GTK_CONTAINER (playlist_selection_menu), playlist_selection_select);
- scrolledwindow1 = gtk_scrolled_window_new (NULL, NULL);
- gtk_widget_ref (scrolledwindow1);
- gtk_object_set_data_full (GTK_OBJECT (intf_playlist), "scrolledwindow1", scrolledwindow1,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (scrolledwindow1);
- gtk_box_pack_start (GTK_BOX (dialog_vbox4), scrolledwindow1, TRUE, TRUE, 0);
- gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow1), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
- playlist_clist = gtk_clist_new (2);
- gtk_widget_ref (playlist_clist);
- gtk_object_set_data_full (GTK_OBJECT (intf_playlist), "playlist_clist", playlist_clist,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (playlist_clist);
- gtk_container_add (GTK_CONTAINER (scrolledwindow1), playlist_clist);
- gtk_container_set_border_width (GTK_CONTAINER (playlist_clist), 5);
- gtk_clist_set_column_width (GTK_CLIST (playlist_clist), 0, 257);
- gtk_clist_set_column_width (GTK_CLIST (playlist_clist), 1, 80);
- gtk_clist_set_selection_mode (GTK_CLIST (playlist_clist), GTK_SELECTION_EXTENDED);
- gtk_clist_column_titles_show (GTK_CLIST (playlist_clist));
- gtk_clist_set_shadow_type (GTK_CLIST (playlist_clist), GTK_SHADOW_OUT);
- label22 = gtk_label_new (_("File"));
- gtk_widget_ref (label22);
- gtk_object_set_data_full (GTK_OBJECT (intf_playlist), "label22", label22,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (label22);
- gtk_clist_set_column_widget (GTK_CLIST (playlist_clist), 0, label22);
- label23 = gtk_label_new (_("Duration"));
- gtk_widget_ref (label23);
- gtk_object_set_data_full (GTK_OBJECT (intf_playlist), "label23", label23,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (label23);
- gtk_clist_set_column_widget (GTK_CLIST (playlist_clist), 1, label23);
- dialog_action_area3 = GTK_DIALOG (intf_playlist)->action_area;
- gtk_object_set_data (GTK_OBJECT (intf_playlist), "dialog_action_area3", dialog_action_area3);
- gtk_widget_show (dialog_action_area3);
- gtk_container_set_border_width (GTK_CONTAINER (dialog_action_area3), 10);
- playlist_ok_button = gtk_button_new_with_label (_("OK"));
- gtk_widget_ref (playlist_ok_button);
- gtk_object_set_data_full (GTK_OBJECT (intf_playlist), "playlist_ok_button", playlist_ok_button,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (playlist_ok_button);
- gtk_box_pack_start (GTK_BOX (dialog_action_area3), playlist_ok_button, TRUE, TRUE, 0);
- playlist_cancel_button = gtk_button_new_with_label (_("Cancel"));
- gtk_widget_ref (playlist_cancel_button);
- gtk_object_set_data_full (GTK_OBJECT (intf_playlist), "playlist_cancel_button", playlist_cancel_button,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (playlist_cancel_button);
- gtk_box_pack_start (GTK_BOX (dialog_action_area3), playlist_cancel_button, TRUE, TRUE, 0);
- gtk_signal_connect (GTK_OBJECT (intf_playlist), "destroy",
- GTK_SIGNAL_FUNC (gtk_widget_hide),
- NULL);
- gtk_signal_connect (GTK_OBJECT (intf_playlist), "delete_event",
- GTK_SIGNAL_FUNC (gtk_widget_hide),
- NULL);
- gtk_signal_connect (GTK_OBJECT (playlist_add_disc), "activate",
- GTK_SIGNAL_FUNC (GtkDiscOpenShow),
- NULL);
- gtk_signal_connect (GTK_OBJECT (playlist_add_file), "activate",
- GTK_SIGNAL_FUNC (GtkFileOpenShow),
- NULL);
- gtk_signal_connect (GTK_OBJECT (playlist_add_network), "activate",
- GTK_SIGNAL_FUNC (GtkNetworkOpenShow),
- NULL);
- gtk_signal_connect (GTK_OBJECT (playlist_add_url), "activate",
- GTK_SIGNAL_FUNC (GtkPlaylistAddUrl),
- NULL);
- gtk_signal_connect (GTK_OBJECT (playlist_delete_all), "activate",
- GTK_SIGNAL_FUNC (GtkPlaylistDeleteAll),
- NULL);
- gtk_signal_connect (GTK_OBJECT (playlist_delete_selected), "activate",
- GTK_SIGNAL_FUNC (GtkPlaylistDeleteSelected),
- NULL);
- gtk_signal_connect (GTK_OBJECT (playlist_selection_crop), "activate",
- GTK_SIGNAL_FUNC (GtkPlaylistCrop),
- NULL);
- gtk_signal_connect (GTK_OBJECT (playlist_selection_invert), "activate",
- GTK_SIGNAL_FUNC (GtkPlaylistInvert),
- NULL);
- gtk_signal_connect (GTK_OBJECT (playlist_selection_select), "activate",
- GTK_SIGNAL_FUNC (GtkPlaylistSelect),
- NULL);
- gtk_signal_connect (GTK_OBJECT (playlist_clist), "event",
- GTK_SIGNAL_FUNC (GtkPlaylistEvent),
- NULL);
- gtk_signal_connect (GTK_OBJECT (playlist_clist), "drag_data_received",
- GTK_SIGNAL_FUNC (GtkPlaylistDragData),
- NULL);
- gtk_signal_connect (GTK_OBJECT (playlist_clist), "drag_motion",
- GTK_SIGNAL_FUNC (GtkPlaylistDragMotion),
- NULL);
- gtk_signal_connect (GTK_OBJECT (playlist_ok_button), "clicked",
- GTK_SIGNAL_FUNC (GtkPlaylistOk),
- NULL);
- gtk_signal_connect (GTK_OBJECT (playlist_cancel_button), "clicked",
- GTK_SIGNAL_FUNC (GtkPlaylistCancel),
- NULL);
- return intf_playlist;
- }
- GtkWidget*
- create_intf_messages (void)
- {
- GtkWidget *intf_messages;
- GtkWidget *dialog_vbox6;
- GtkWidget *scrolledwindow2;
- GtkWidget *messages_textbox;
- GtkWidget *dialog_action_area5;
- GtkWidget *messages_ok;
- intf_messages = gtk_dialog_new ();
- gtk_object_set_data (GTK_OBJECT (intf_messages), "intf_messages", intf_messages);
- gtk_window_set_title (GTK_WINDOW (intf_messages), _("Messages"));
- gtk_window_set_default_size (GTK_WINDOW (intf_messages), 600, 400);
- gtk_window_set_policy (GTK_WINDOW (intf_messages), TRUE, TRUE, FALSE);
- dialog_vbox6 = GTK_DIALOG (intf_messages)->vbox;
- gtk_object_set_data (GTK_OBJECT (intf_messages), "dialog_vbox6", dialog_vbox6);
- gtk_widget_show (dialog_vbox6);
- scrolledwindow2 = gtk_scrolled_window_new (NULL, NULL);
- gtk_widget_ref (scrolledwindow2);
- gtk_object_set_data_full (GTK_OBJECT (intf_messages), "scrolledwindow2", scrolledwindow2,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (scrolledwindow2);
- gtk_box_pack_start (GTK_BOX (dialog_vbox6), scrolledwindow2, TRUE, TRUE, 0);
- gtk_container_set_border_width (GTK_CONTAINER (scrolledwindow2), 5);
- gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow2), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS);
- messages_textbox = gtk_text_new (NULL, NULL);
- gtk_widget_ref (messages_textbox);
- gtk_object_set_data_full (GTK_OBJECT (intf_messages), "messages_textbox", messages_textbox,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (messages_textbox);
- gtk_container_add (GTK_CONTAINER (scrolledwindow2), messages_textbox);
- dialog_action_area5 = GTK_DIALOG (intf_messages)->action_area;
- gtk_object_set_data (GTK_OBJECT (intf_messages), "dialog_action_area5", dialog_action_area5);
- gtk_widget_show (dialog_action_area5);
- gtk_container_set_border_width (GTK_CONTAINER (dialog_action_area5), 5);
- messages_ok = gtk_button_new_with_label (_("OK"));
- gtk_widget_ref (messages_ok);
- gtk_object_set_data_full (GTK_OBJECT (intf_messages), "messages_ok", messages_ok,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (messages_ok);
- gtk_box_pack_start (GTK_BOX (dialog_action_area5), messages_ok, FALSE, TRUE, 0);
- GTK_WIDGET_SET_FLAGS (messages_ok, GTK_CAN_DEFAULT);
- gtk_signal_connect (GTK_OBJECT (intf_messages), "delete_event",
- GTK_SIGNAL_FUNC (GtkMessagesDelete),
- NULL);
- gtk_signal_connect (GTK_OBJECT (messages_ok), "clicked",
- GTK_SIGNAL_FUNC (GtkMessagesOk),
- NULL);
- gtk_widget_grab_default (messages_ok);
- return intf_messages;
- }
- GtkWidget*
- create_intf_sout (void)
- {
- GtkWidget *intf_sout;
- GtkWidget *vbox15;
- GtkWidget *vbox16;
- GtkWidget *frame11;
- GtkWidget *hbox28;
- GtkWidget *label38;
- GtkWidget *combo4;
- GtkWidget *sout_entry_target;
- GtkWidget *frame12;
- GtkWidget *table6;
- GSList *sout_access_group = NULL;
- GtkWidget *sout_access_file;
- GtkWidget *sout_access_udp;
- GtkWidget *sout_access_rtp;
- GtkWidget *sout_file_path_label;
- GtkWidget *combo6;
- GtkWidget *sout_file_path;
- GtkWidget *sout_udp_address_label;
- GtkWidget *sout_udp_address_combo;
- GtkWidget *sout_udp_address;
- GtkObject *sout_udp_port_adj;
- GtkWidget *sout_udp_port;
- GtkWidget *hbox29;
- GSList *sout_mux_group = NULL;
- GtkWidget *sout_mux_ts;
- GtkWidget *sout_mux_ps;
- GtkWidget *sout_mux_avi;
- GtkWidget *sout_udp_port_label;
- GtkWidget *hbox25;
- GtkWidget *hbox26;
- GtkWidget *button1;
- GtkWidget *button2;
- intf_sout = gtk_window_new (GTK_WINDOW_TOPLEVEL);
- gtk_object_set_data (GTK_OBJECT (intf_sout), "intf_sout", intf_sout);
- gtk_container_set_border_width (GTK_CONTAINER (intf_sout), 5);
- gtk_window_set_title (GTK_WINDOW (intf_sout), _("Stream output"));
- gtk_window_set_modal (GTK_WINDOW (intf_sout), TRUE);
- vbox15 = gtk_vbox_new (FALSE, 0);
- gtk_widget_ref (vbox15);
- gtk_object_set_data_full (GTK_OBJECT (intf_sout), "vbox15", vbox15,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (vbox15);
- gtk_container_add (GTK_CONTAINER (intf_sout), vbox15);
- vbox16 = gtk_vbox_new (FALSE, 0);
- gtk_widget_ref (vbox16);
- gtk_object_set_data_full (GTK_OBJECT (intf_sout), "vbox16", vbox16,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (vbox16);
- gtk_box_pack_start (GTK_BOX (vbox15), vbox16, TRUE, TRUE, 0);
- frame11 = gtk_frame_new (_("Stream output (MRL)"));
- gtk_widget_ref (frame11);
- gtk_object_set_data_full (GTK_OBJECT (intf_sout), "frame11", frame11,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (frame11);
- gtk_box_pack_start (GTK_BOX (vbox16), frame11, FALSE, TRUE, 0);
- hbox28 = gtk_hbox_new (FALSE, 0);
- gtk_widget_ref (hbox28);
- gtk_object_set_data_full (GTK_OBJECT (intf_sout), "hbox28", hbox28,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (hbox28);
- gtk_container_add (GTK_CONTAINER (frame11), hbox28);
- gtk_container_set_border_width (GTK_CONTAINER (hbox28), 5);
- label38 = gtk_label_new (_("Destination Target: "));
- gtk_widget_ref (label38);
- gtk_object_set_data_full (GTK_OBJECT (intf_sout), "label38", label38,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (label38);
- gtk_box_pack_start (GTK_BOX (hbox28), label38, FALSE, FALSE, 0);
- combo4 = gtk_combo_new ();
- gtk_widget_ref (combo4);
- gtk_object_set_data_full (GTK_OBJECT (intf_sout), "combo4", combo4,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (combo4);
- gtk_box_pack_start (GTK_BOX (hbox28), combo4, TRUE, TRUE, 0);
- sout_entry_target = GTK_COMBO (combo4)->entry;
- gtk_widget_ref (sout_entry_target);
- gtk_object_set_data_full (GTK_OBJECT (intf_sout), "sout_entry_target", sout_entry_target,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (sout_entry_target);
- frame12 = gtk_frame_new (NULL);
- gtk_widget_ref (frame12);
- gtk_object_set_data_full (GTK_OBJECT (intf_sout), "frame12", frame12,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (frame12);
- gtk_box_pack_start (GTK_BOX (vbox16), frame12, TRUE, TRUE, 0);
- table6 = gtk_table_new (3, 5, FALSE);
- gtk_widget_ref (table6);
- gtk_object_set_data_full (GTK_OBJECT (intf_sout), "table6", table6,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (table6);
- gtk_container_add (GTK_CONTAINER (frame12), table6);
- gtk_table_set_row_spacings (GTK_TABLE (table6), 5);
- gtk_table_set_col_spacings (GTK_TABLE (table6), 5);
- sout_access_file = gtk_radio_button_new_with_label (sout_access_group, _("File"));
- sout_access_group = gtk_radio_button_group (GTK_RADIO_BUTTON (sout_access_file));
- gtk_widget_ref (sout_access_file);
- gtk_object_set_data_full (GTK_OBJECT (intf_sout), "sout_access_file", sout_access_file,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (sout_access_file);
- gtk_table_attach (GTK_TABLE (table6), sout_access_file, 0, 1, 0, 1,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- sout_access_udp = gtk_radio_button_new_with_label (sout_access_group, "UDP");
- sout_access_group = gtk_radio_button_group (GTK_RADIO_BUTTON (sout_access_udp));
- gtk_widget_ref (sout_access_udp);
- gtk_object_set_data_full (GTK_OBJECT (intf_sout), "sout_access_udp", sout_access_udp,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (sout_access_udp);
- gtk_table_attach (GTK_TABLE (table6), sout_access_udp, 0, 1, 1, 2,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- sout_access_rtp = gtk_radio_button_new_with_label (sout_access_group, "RTP");
- sout_access_group = gtk_radio_button_group (GTK_RADIO_BUTTON (sout_access_rtp));
- gtk_widget_ref (sout_access_rtp);
- gtk_object_set_data_full (GTK_OBJECT (intf_sout), "sout_access_rtp", sout_access_rtp,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (sout_access_rtp);
- gtk_table_attach (GTK_TABLE (table6), sout_access_rtp, 0, 1, 2, 3,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- sout_file_path_label = gtk_label_new (_("Path:"));
- gtk_widget_ref (sout_file_path_label);
- gtk_object_set_data_full (GTK_OBJECT (intf_sout), "sout_file_path_label", sout_file_path_label,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (sout_file_path_label);
- gtk_table_attach (GTK_TABLE (table6), sout_file_path_label, 1, 2, 0, 1,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_misc_set_alignment (GTK_MISC (sout_file_path_label), 0, 0.5);
- combo6 = gtk_combo_new ();
- gtk_widget_ref (combo6);
- gtk_object_set_data_full (GTK_OBJECT (intf_sout), "combo6", combo6,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (combo6);
- gtk_table_attach (GTK_TABLE (table6), combo6, 2, 5, 0, 1,
- (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- sout_file_path = GTK_COMBO (combo6)->entry;
- gtk_widget_ref (sout_file_path);
- gtk_object_set_data_full (GTK_OBJECT (intf_sout), "sout_file_path", sout_file_path,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (sout_file_path);
- sout_udp_address_label = gtk_label_new (_("Address:"));
- gtk_widget_ref (sout_udp_address_label);
- gtk_object_set_data_full (GTK_OBJECT (intf_sout), "sout_udp_address_label", sout_udp_address_label,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (sout_udp_address_label);
- gtk_table_attach (GTK_TABLE (table6), sout_udp_address_label, 1, 2, 1, 2,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_misc_set_alignment (GTK_MISC (sout_udp_address_label), 0, 0.5);
- sout_udp_address_combo = gtk_combo_new ();
- gtk_widget_ref (sout_udp_address_combo);
- gtk_object_set_data_full (GTK_OBJECT (intf_sout), "sout_udp_address_combo", sout_udp_address_combo,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (sout_udp_address_combo);
- gtk_table_attach (GTK_TABLE (table6), sout_udp_address_combo, 2, 3, 1, 2,
- (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- sout_udp_address = GTK_COMBO (sout_udp_address_combo)->entry;
- gtk_widget_ref (sout_udp_address);
- gtk_object_set_data_full (GTK_OBJECT (intf_sout), "sout_udp_address", sout_udp_address,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (sout_udp_address);
- sout_udp_port_adj = gtk_adjustment_new (1234, 0, 65535, 1, 10, 10);
- sout_udp_port = gtk_spin_button_new (GTK_ADJUSTMENT (sout_udp_port_adj), 1, 0);
- gtk_widget_ref (sout_udp_port);
- gtk_object_set_data_full (GTK_OBJECT (intf_sout), "sout_udp_port", sout_udp_port,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (sout_udp_port);
- gtk_table_attach (GTK_TABLE (table6), sout_udp_port, 4, 5, 1, 2,
- (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- hbox29 = gtk_hbox_new (FALSE, 0);
- gtk_widget_ref (hbox29);
- gtk_object_set_data_full (GTK_OBJECT (intf_sout), "hbox29", hbox29,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (hbox29);
- gtk_table_attach (GTK_TABLE (table6), hbox29, 4, 5, 2, 3,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (GTK_FILL), 0, 0);
- sout_mux_ts = gtk_radio_button_new_with_label (sout_mux_group, _("TS"));
- sout_mux_group = gtk_radio_button_group (GTK_RADIO_BUTTON (sout_mux_ts));
- gtk_widget_ref (sout_mux_ts);
- gtk_object_set_data_full (GTK_OBJECT (intf_sout), "sout_mux_ts", sout_mux_ts,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (sout_mux_ts);
- gtk_box_pack_start (GTK_BOX (hbox29), sout_mux_ts, FALSE, FALSE, 0);
- sout_mux_ps = gtk_radio_button_new_with_label (sout_mux_group, _("PS"));
- sout_mux_group = gtk_radio_button_group (GTK_RADIO_BUTTON (sout_mux_ps));
- gtk_widget_ref (sout_mux_ps);
- gtk_object_set_data_full (GTK_OBJECT (intf_sout), "sout_mux_ps", sout_mux_ps,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (sout_mux_ps);
- gtk_box_pack_start (GTK_BOX (hbox29), sout_mux_ps, FALSE, FALSE, 0);
- sout_mux_avi = gtk_radio_button_new_with_label (sout_mux_group, _("AVI"));
- sout_mux_group = gtk_radio_button_group (GTK_RADIO_BUTTON (sout_mux_avi));
- gtk_widget_ref (sout_mux_avi);
- gtk_object_set_data_full (GTK_OBJECT (intf_sout), "sout_mux_avi", sout_mux_avi,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (sout_mux_avi);
- gtk_box_pack_start (GTK_BOX (hbox29), sout_mux_avi, FALSE, FALSE, 0);
- sout_udp_port_label = gtk_label_new (_("Port"));
- gtk_widget_ref (sout_udp_port_label);
- gtk_object_set_data_full (GTK_OBJECT (intf_sout), "sout_udp_port_label", sout_udp_port_label,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (sout_udp_port_label);
- gtk_table_attach (GTK_TABLE (table6), sout_udp_port_label, 3, 4, 1, 2,
- (GtkAttachOptions) (GTK_FILL),
- (GtkAttachOptions) (0), 0, 0);
- gtk_misc_set_alignment (GTK_MISC (sout_udp_port_label), 0, 0.5);
- hbox25 = gtk_hbox_new (FALSE, 0);
- gtk_widget_ref (hbox25);
- gtk_object_set_data_full (GTK_OBJECT (intf_sout), "hbox25", hbox25,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (hbox25);
- gtk_box_pack_end (GTK_BOX (vbox15), hbox25, FALSE, TRUE, 0);
- gtk_container_set_border_width (GTK_CONTAINER (hbox25), 5);
- hbox26 = gtk_hbox_new (FALSE, 0);
- gtk_widget_ref (hbox26);
- gtk_object_set_data_full (GTK_OBJECT (intf_sout), "hbox26", hbox26,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (hbox26);
- gtk_box_pack_end (GTK_BOX (hbox25), hbox26, TRUE, TRUE, 3);
- button1 = gtk_button_new_with_label (_("OK"));
- gtk_widget_ref (button1);
- gtk_object_set_data_full (GTK_OBJECT (intf_sout), "button1", button1,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (button1);
- gtk_box_pack_start (GTK_BOX (hbox26), button1, TRUE, TRUE, 2);
- button2 = gtk_button_new_with_label (_("Cancel"));
- gtk_widget_ref (button2);
- gtk_object_set_data_full (GTK_OBJECT (intf_sout), "button2", button2,
- (GtkDestroyNotify) gtk_widget_unref);
- gtk_widget_show (button2);
- gtk_box_pack_start (GTK_BOX (hbox26), button2, TRUE, TRUE, 2);
- gtk_signal_connect (GTK_OBJECT (sout_access_file), "toggled",
- GTK_SIGNAL_FUNC (GtkSoutSettingsAccessFile),
- NULL);
- gtk_signal_connect (GTK_OBJECT (sout_access_udp), "toggled",
- GTK_SIGNAL_FUNC (GtkSoutSettingsAccessUdp),
- NULL);
- gtk_signal_connect (GTK_OBJECT (sout_access_rtp), "toggled",
- GTK_SIGNAL_FUNC (GtkSoutSettingsAccessUdp),
- NULL);
- gtk_signal_connect (GTK_OBJECT (sout_file_path), "changed",
- GTK_SIGNAL_FUNC (GtkSoutSettingsChanged),
- NULL);
- gtk_signal_connect (GTK_OBJECT (sout_udp_address), "changed",
- GTK_SIGNAL_FUNC (GtkSoutSettingsChanged),
- NULL);
- gtk_signal_connect (GTK_OBJECT (sout_udp_port), "changed",
- GTK_SIGNAL_FUNC (GtkSoutSettingsChanged),
- NULL);
- gtk_signal_connect (GTK_OBJECT (sout_mux_ts), "toggled",
- GTK_SIGNAL_FUNC (GtkSoutSettingsChanged),
- NULL);
- gtk_signal_connect (GTK_OBJECT (sout_mux_ps), "toggled",
- GTK_SIGNAL_FUNC (GtkSoutSettingsChanged),
- NULL);
- gtk_signal_connect (GTK_OBJECT (sout_mux_avi), "toggled",
- GTK_SIGNAL_FUNC (GtkSoutSettingsChanged),
- NULL);
- gtk_signal_connect (GTK_OBJECT (button1), "clicked",
- GTK_SIGNAL_FUNC (GtkSoutSettingsOk),
- NULL);
- gtk_signal_connect (GTK_OBJECT (button2), "clicked",
- GTK_SIGNAL_FUNC (GtkSoutSettingsCancel),
- NULL);
- return intf_sout;
- }