Changeset 5f02f2623de11a0c63cb3aea5569339351ea22af
- Timestamp:
- 29/02/04 23:59:59 (5 years ago)
- git-parent:
- Files:
-
- modules/gui/pda/pda.c (modified) (10 diffs)
- modules/gui/pda/pda.glade (modified) (35 diffs)
- modules/gui/pda/pda_callbacks.c (modified) (10 diffs)
- modules/gui/pda/pda_interface.c (modified) (55 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/gui/pda/pda.c
r405c632 r5f02f26 3 3 ***************************************************************************** 4 4 * Copyright (C) 2002 VideoLAN 5 * $Id: pda.c,v 1.2 1 2004/02/13 10:09:46jpsaman Exp $5 * $Id: pda.c,v 1.22 2004/02/29 22:59:59 jpsaman Exp $ 6 6 * 7 7 * Authors: Jean-Paul Saman <jpsaman@wxs.nl> … … 64 64 *****************************************************************************/ 65 65 vlc_module_begin(); 66 set_description( _("PDA Linux Gtk2+ interface") );66 set_description( N_("PDA Linux Gtk2+ interface") ); 67 67 // add_bool( "pda-autoplayfile", 1, GtkAutoPlayFile, AUTOPLAYFILE_TEXT, AUTOPLAYFILE_LONGTEXT, VLC_TRUE ); 68 68 set_capability( "interface", 70 ); … … 215 215 /* Insert columns 0 */ 216 216 p_renderer = gtk_cell_renderer_text_new (); 217 gtk_tree_view_insert_column_with_attributes(p_intf->p_sys->p_tvfile, 0, _("Filename"), p_renderer, NULL);217 gtk_tree_view_insert_column_with_attributes(p_intf->p_sys->p_tvfile, 0, (gchar *) N_("Filename"), p_renderer, NULL); 218 218 p_column = gtk_tree_view_get_column(p_intf->p_sys->p_tvfile, 0 ); 219 219 gtk_tree_view_column_add_attribute(p_column, p_renderer, "text", 0 ); … … 221 221 /* Insert columns 1 */ 222 222 p_renderer = gtk_cell_renderer_text_new (); 223 gtk_tree_view_insert_column_with_attributes(p_intf->p_sys->p_tvfile, 1, _("Permissions"), p_renderer, NULL);223 gtk_tree_view_insert_column_with_attributes(p_intf->p_sys->p_tvfile, 1, (gchar *) N_("Permissions"), p_renderer, NULL); 224 224 p_column = gtk_tree_view_get_column(p_intf->p_sys->p_tvfile, 1 ); 225 225 gtk_tree_view_column_add_attribute(p_column, p_renderer, "text", 1 ); … … 227 227 /* Insert columns 2 */ 228 228 p_renderer = gtk_cell_renderer_text_new (); 229 gtk_tree_view_insert_column_with_attributes(p_intf->p_sys->p_tvfile, 2, _("Size"), p_renderer, NULL);229 gtk_tree_view_insert_column_with_attributes(p_intf->p_sys->p_tvfile, 2, (gchar *) N_("Size"), p_renderer, NULL); 230 230 p_column = gtk_tree_view_get_column(p_intf->p_sys->p_tvfile, 2 ); 231 231 gtk_tree_view_column_add_attribute(p_column, p_renderer, "text", 2 ); … … 233 233 /* Insert columns 3 */ 234 234 p_renderer = gtk_cell_renderer_text_new (); 235 gtk_tree_view_insert_column_with_attributes(p_intf->p_sys->p_tvfile, 3, _("Owner"), p_renderer, NULL);235 gtk_tree_view_insert_column_with_attributes(p_intf->p_sys->p_tvfile, 3, (gchar *) N_("Owner"), p_renderer, NULL); 236 236 p_column = gtk_tree_view_get_column(p_intf->p_sys->p_tvfile, 3 ); 237 237 gtk_tree_view_column_add_attribute(p_column, p_renderer, "text", 3 ); … … 239 239 /* Insert columns 4 */ 240 240 p_renderer = gtk_cell_renderer_text_new (); 241 gtk_tree_view_insert_column_with_attributes(p_intf->p_sys->p_tvfile, 4, _("Group"), p_renderer, NULL);241 gtk_tree_view_insert_column_with_attributes(p_intf->p_sys->p_tvfile, 4, (gchar *) N_("Group"), p_renderer, NULL); 242 242 p_column = gtk_tree_view_get_column(p_intf->p_sys->p_tvfile, 4 ); 243 243 gtk_tree_view_column_add_attribute(p_column, p_renderer, "text", 4 ); … … 270 270 /* Columns 1 */ 271 271 p_renderer = gtk_cell_renderer_text_new (); 272 gtk_tree_view_insert_column_with_attributes(p_intf->p_sys->p_tvplaylist, 0, _("Filename"), p_renderer, NULL);272 gtk_tree_view_insert_column_with_attributes(p_intf->p_sys->p_tvplaylist, 0, (gchar *) N_("Filename"), p_renderer, NULL); 273 273 p_column = gtk_tree_view_get_column(p_intf->p_sys->p_tvplaylist, 0 ); 274 274 gtk_tree_view_column_add_attribute(p_column, p_renderer, "text", 0 ); … … 276 276 /* Column 2 */ 277 277 p_renderer = gtk_cell_renderer_text_new (); 278 gtk_tree_view_insert_column_with_attributes(p_intf->p_sys->p_tvplaylist, 1, _("Time"), p_renderer, NULL);278 gtk_tree_view_insert_column_with_attributes(p_intf->p_sys->p_tvplaylist, 1, (gchar *) N_("Time"), p_renderer, NULL); 279 279 p_column = gtk_tree_view_get_column(p_intf->p_sys->p_tvplaylist, 1 ); 280 280 gtk_tree_view_column_add_attribute(p_column, p_renderer, "text", 1 ); … … 283 283 /* Column 3 - is a hidden column used for reliable deleting items from the underlying playlist */ 284 284 p_renderer = gtk_cell_renderer_text_new (); 285 gtk_tree_view_insert_column_with_attributes(p_intf->p_sys->p_tvplaylist, 2, _("Index"), p_renderer, NULL);285 gtk_tree_view_insert_column_with_attributes(p_intf->p_sys->p_tvplaylist, 2, (gchar *) N_("Index"), p_renderer, NULL); 286 286 p_column = gtk_tree_view_get_column(p_intf->p_sys->p_tvplaylist, 2 ); 287 287 gtk_tree_view_column_add_attribute(p_column, p_renderer, "text", 2 ); modules/gui/pda/pda.glade
rc14327c r5f02f26 309 309 <property name="height_request">16</property> 310 310 <property name="visible">True</property> 311 <property name="label" >MRL:</property>311 <property name="label" translatable="yes">MRL:</property> 312 312 <property name="use_underline">False</property> 313 313 <property name="use_markup">False</property> … … 345 345 <property name="visibility">True</property> 346 346 <property name="max_length">0</property> 347 <property name="text" ></property>347 <property name="text" translatable="yes"></property> 348 348 <property name="has_frame">True</property> 349 <property name="invisible_char" >*</property>349 <property name="invisible_char" translatable="yes">*</property> 350 350 <property name="activates_default">True</property> 351 351 </widget> … … 361 361 <property name="visible">True</property> 362 362 <property name="can_focus">True</property> 363 <property name="label" >udp://@:1234</property>363 <property name="label" translatable="yes">udp://@:1234</property> 364 364 </widget> 365 365 </child> … … 369 369 <property name="visible">True</property> 370 370 <property name="can_focus">True</property> 371 <property name="label" >udp6://@:1234</property>371 <property name="label" translatable="yes">udp6://@:1234</property> 372 372 </widget> 373 373 </child> … … 377 377 <property name="visible">True</property> 378 378 <property name="can_focus">True</property> 379 <property name="label" >rtp://</property>379 <property name="label" translatable="yes">rtp://</property> 380 380 </widget> 381 381 </child> … … 385 385 <property name="visible">True</property> 386 386 <property name="can_focus">True</property> 387 <property name="label" >rtp6://</property>387 <property name="label" translatable="yes">rtp6://</property> 388 388 </widget> 389 389 </child> … … 393 393 <property name="visible">True</property> 394 394 <property name="can_focus">True</property> 395 <property name="label" >ftp://</property>395 <property name="label" translatable="yes">ftp://</property> 396 396 </widget> 397 397 </child> … … 401 401 <property name="visible">True</property> 402 402 <property name="can_focus">True</property> 403 <property name="label" >http://</property>403 <property name="label" translatable="yes">http://</property> 404 404 </widget> 405 405 </child> … … 409 409 <property name="visible">True</property> 410 410 <property name="can_focus">True</property> 411 <property name="label" >mms://</property>411 <property name="label" translatable="yes">mms://</property> 412 412 </widget> 413 413 </child> … … 536 536 <property name="visibility">True</property> 537 537 <property name="max_length">0</property> 538 <property name="text" ></property>538 <property name="text" translatable="yes"></property> 539 539 <property name="has_frame">True</property> 540 <property name="invisible_char" >*</property>540 <property name="invisible_char" translatable="yes">*</property> 541 541 <property name="activates_default">False</property> 542 542 <signal name="changed" handler="NetworkBuildMRL" last_modification_time="Sat, 08 Nov 2003 13:34:30 GMT"/> … … 576 576 <property name="visibility">True</property> 577 577 <property name="max_length">0</property> 578 <property name="text" ></property>578 <property name="text" translatable="yes"></property> 579 579 <property name="has_frame">True</property> 580 <property name="invisible_char" >*</property>580 <property name="invisible_char" translatable="yes">*</property> 581 581 <property name="activates_default">True</property> 582 582 <signal name="changed" handler="NetworkBuildMRL" last_modification_time="Sat, 08 Nov 2003 13:34:45 GMT"/> … … 656 656 <property name="visibility">True</property> 657 657 <property name="max_length">0</property> 658 <property name="text" ></property>658 <property name="text" translatable="yes"></property> 659 659 <property name="has_frame">True</property> 660 <property name="invisible_char" >*</property>660 <property name="invisible_char" translatable="yes">*</property> 661 661 <property name="activates_default">False</property> 662 662 <signal name="changed" handler="NetworkBuildMRL" last_modification_time="Sat, 08 Nov 2003 13:35:01 GMT"/> … … 673 673 <property name="visible">True</property> 674 674 <property name="can_focus">True</property> 675 <property name="label" >udp</property>675 <property name="label" translatable="yes">udp</property> 676 676 </widget> 677 677 </child> … … 681 681 <property name="visible">True</property> 682 682 <property name="can_focus">True</property> 683 <property name="label" >udp6</property>683 <property name="label" translatable="yes">udp6</property> 684 684 </widget> 685 685 </child> … … 689 689 <property name="visible">True</property> 690 690 <property name="can_focus">True</property> 691 <property name="label" >rtp</property>691 <property name="label" translatable="yes">rtp</property> 692 692 </widget> 693 693 </child> … … 697 697 <property name="visible">True</property> 698 698 <property name="can_focus">True</property> 699 <property name="label" >rtp4</property>699 <property name="label" translatable="yes">rtp4</property> 700 700 </widget> 701 701 </child> … … 705 705 <property name="visible">True</property> 706 706 <property name="can_focus">True</property> 707 <property name="label" >ftp</property>707 <property name="label" translatable="yes">ftp</property> 708 708 </widget> 709 709 </child> … … 713 713 <property name="visible">True</property> 714 714 <property name="can_focus">True</property> 715 <property name="label" >http</property>715 <property name="label" translatable="yes">http</property> 716 716 </widget> 717 717 </child> … … 721 721 <property name="visible">True</property> 722 722 <property name="can_focus">True</property> 723 <property name="label" >sout</property>723 <property name="label" translatable="yes">sout</property> 724 724 </widget> 725 725 </child> … … 729 729 <property name="visible">True</property> 730 730 <property name="can_focus">True</property> 731 <property name="label" >mms</property>731 <property name="label" translatable="yes">mms</property> 732 732 </widget> 733 733 </child> … … 767 767 </packing> 768 768 </child> 769 770 <child> 771 <widget class="GtkLabel" id="labelNetworkTranscode"> 772 <property name="visible">True</property> 773 <property name="label" translatable="yes">Transcode:</property> 774 <property name="use_underline">False</property> 775 <property name="use_markup">False</property> 776 <property name="justify">GTK_JUSTIFY_LEFT</property> 777 <property name="wrap">False</property> 778 <property name="selectable">False</property> 779 <property name="xalign">0</property> 780 <property name="yalign">0.5</property> 781 <property name="xpad">0</property> 782 <property name="ypad">0</property> 783 </widget> 784 <packing> 785 <property name="left_attach">0</property> 786 <property name="right_attach">1</property> 787 <property name="top_attach">4</property> 788 <property name="bottom_attach">5</property> 789 <property name="x_options">fill</property> 790 <property name="y_options"></property> 791 </packing> 792 </child> 793 794 <child> 795 <widget class="GtkCheckButton" id="checkNetworkTranscode"> 796 <property name="visible">True</property> 797 <property name="can_focus">True</property> 798 <property name="label" translatable="yes">enable</property> 799 <property name="use_underline">True</property> 800 <property name="relief">GTK_RELIEF_NORMAL</property> 801 <property name="active">False</property> 802 <property name="inconsistent">False</property> 803 <property name="draw_indicator">True</property> 804 </widget> 805 <packing> 806 <property name="left_attach">1</property> 807 <property name="right_attach">2</property> 808 <property name="top_attach">4</property> 809 <property name="bottom_attach">5</property> 810 <property name="x_options">fill</property> 811 <property name="y_options"></property> 812 </packing> 813 </child> 769 814 </widget> 770 815 <packing> … … 860 905 <widget class="GtkTable" id="tableV4L"> 861 906 <property name="visible">True</property> 862 <property name="n_rows">1 2</property>907 <property name="n_rows">13</property> 863 908 <property name="n_columns">2</property> 864 909 <property name="homogeneous">False</property> … … 1170 1215 <property name="visibility">True</property> 1171 1216 <property name="max_length">0</property> 1172 <property name="text" ></property>1217 <property name="text" translatable="yes"></property> 1173 1218 <property name="has_frame">True</property> 1174 <property name="invisible_char" >*</property>1219 <property name="invisible_char" translatable="yes">*</property> 1175 1220 <property name="activates_default">True</property> 1176 1221 </widget> … … 1234 1279 <property name="visibility">True</property> 1235 1280 <property name="max_length">0</property> 1236 <property name="text" ></property>1281 <property name="text" translatable="yes"></property> 1237 1282 <property name="has_frame">True</property> 1238 <property name="invisible_char" >*</property>1283 <property name="invisible_char" translatable="yes">*</property> 1239 1284 <property name="activates_default">True</property> 1240 1285 </widget> … … 1328 1373 <property name="visibility">True</property> 1329 1374 <property name="max_length">0</property> 1330 <property name="text" ></property>1375 <property name="text" translatable="yes"></property> 1331 1376 <property name="has_frame">True</property> 1332 <property name="invisible_char" >*</property>1377 <property name="invisible_char" translatable="yes">*</property> 1333 1378 <property name="activates_default">True</property> 1334 1379 </widget> … … 1400 1445 <property name="visibility">True</property> 1401 1446 <property name="max_length">0</property> 1402 <property name="text" ></property>1447 <property name="text" translatable="yes"></property> 1403 1448 <property name="has_frame">True</property> 1404 <property name="invisible_char" >*</property>1449 <property name="invisible_char" translatable="yes">*</property> 1405 1450 <property name="activates_default">True</property> 1406 1451 </widget> … … 1564 1609 <property name="visibility">True</property> 1565 1610 <property name="max_length">0</property> 1566 <property name="text" ></property>1611 <property name="text" translatable="yes"></property> 1567 1612 <property name="has_frame">True</property> 1568 <property name="invisible_char" >*</property>1613 <property name="invisible_char" translatable="yes">*</property> 1569 1614 <property name="activates_default">True</property> 1570 1615 </widget> … … 1665 1710 <property name="bottom_attach">12</property> 1666 1711 <property name="x_options">expand|shrink|fill</property> 1712 <property name="y_options"></property> 1713 </packing> 1714 </child> 1715 1716 <child> 1717 <widget class="GtkLabel" id="labelV4LTranscode"> 1718 <property name="visible">True</property> 1719 <property name="label" translatable="yes">Transcode:</property> 1720 <property name="use_underline">False</property> 1721 <property name="use_markup">False</property> 1722 <property name="justify">GTK_JUSTIFY_LEFT</property> 1723 <property name="wrap">False</property> 1724 <property name="selectable">False</property> 1725 <property name="xalign">0</property> 1726 <property name="yalign">0.5</property> 1727 <property name="xpad">0</property> 1728 <property name="ypad">0</property> 1729 </widget> 1730 <packing> 1731 <property name="left_attach">0</property> 1732 <property name="right_attach">1</property> 1733 <property name="top_attach">12</property> 1734 <property name="bottom_attach">13</property> 1735 <property name="x_options">fill</property> 1736 <property name="y_options"></property> 1737 </packing> 1738 </child> 1739 1740 <child> 1741 <widget class="GtkCheckButton" id="checkV4LTranscode"> 1742 <property name="visible">True</property> 1743 <property name="can_focus">True</property> 1744 <property name="label" translatable="yes">enable</property> 1745 <property name="use_underline">True</property> 1746 <property name="relief">GTK_RELIEF_NORMAL</property> 1747 <property name="active">False</property> 1748 <property name="inconsistent">False</property> 1749 <property name="draw_indicator">True</property> 1750 </widget> 1751 <packing> 1752 <property name="left_attach">1</property> 1753 <property name="right_attach">2</property> 1754 <property name="top_attach">12</property> 1755 <property name="bottom_attach">13</property> 1756 <property name="x_options">fill</property> 1667 1757 <property name="y_options"></property> 1668 1758 </packing> … … 1811 1901 <property name="visibility">True</property> 1812 1902 <property name="max_length">0</property> 1813 <property name="text" ></property>1903 <property name="text" translatable="yes"></property> 1814 1904 <property name="has_frame">True</property> 1815 <property name="invisible_char" >*</property>1905 <property name="invisible_char" translatable="yes">*</property> 1816 1906 <property name="activates_default">True</property> 1817 1907 </widget> … … 2152 2242 <property name="visibility">True</property> 2153 2243 <property name="max_length">0</property> 2154 <property name="text" ></property>2244 <property name="text" translatable="yes"></property> 2155 2245 <property name="has_frame">True</property> 2156 <property name="invisible_char" >*</property>2246 <property name="invisible_char" translatable="yes">*</property> 2157 2247 <property name="activates_default">True</property> 2158 2248 </widget> … … 2223 2313 <property name="visibility">True</property> 2224 2314 <property name="max_length">0</property> 2225 <property name="text" ></property>2315 <property name="text" translatable="yes"></property> 2226 2316 <property name="has_frame">True</property> 2227 <property name="invisible_char" >*</property>2317 <property name="invisible_char" translatable="yes">*</property> 2228 2318 <property name="activates_default">True</property> 2229 2319 </widget> … … 2348 2438 <property name="visibility">True</property> 2349 2439 <property name="max_length">0</property> 2350 <property name="text" ></property>2440 <property name="text" translatable="yes"></property> 2351 2441 <property name="has_frame">True</property> 2352 <property name="invisible_char" >*</property>2442 <property name="invisible_char" translatable="yes">*</property> 2353 2443 <property name="activates_default">True</property> 2354 2444 </widget> … … 2545 2635 <property name="visibility">True</property> 2546 2636 <property name="max_length">0</property> 2547 <property name="text" ></property>2637 <property name="text" translatable="yes"></property> 2548 2638 <property name="has_frame">True</property> 2549 <property name="invisible_char" >*</property>2639 <property name="invisible_char" translatable="yes">*</property> 2550 2640 <property name="activates_default">True</property> 2551 2641 <signal name="changed" handler="onEntryStdAccessChanged" last_modification_time="Sun, 30 Nov 2003 22:35:14 GMT"/> … … 2570 2660 <property name="visible">True</property> 2571 2661 <property name="can_focus">True</property> 2572 <property name="label" translatable="yes">display</property> 2662 2663 <child> 2664 <placeholder/> 2665 </child> 2573 2666 </widget> 2574 2667 </child> … … 2763 2856 <property name="visibility">True</property> 2764 2857 <property name="max_length">0</property> 2765 <property name="text" ></property>2858 <property name="text" translatable="yes"></property> 2766 2859 <property name="has_frame">True</property> 2767 <property name="invisible_char" >*</property>2860 <property name="invisible_char" translatable="yes">*</property> 2768 2861 <property name="activates_default">False</property> 2769 2862 </widget> modules/gui/pda/pda_callbacks.c
r405c632 r5f02f26 3 3 ***************************************************************************** 4 4 * Copyright (C) 2000, 2001 VideoLAN 5 * $Id: pda_callbacks.c,v 1.2 8 2004/02/13 10:09:46jpsaman Exp $5 * $Id: pda_callbacks.c,v 1.29 2004/02/29 22:59:59 jpsaman Exp $ 6 6 * 7 7 * Authors: Jean-Paul Saman <jpsaman@wxs.nl> … … 111 111 112 112 p_play_model = gtk_tree_view_get_model(p_tvplaylist); 113 113 114 114 if (p_play_model) 115 115 { … … 322 322 if (st.st_mode & S_IXOTH) 323 323 { 324 / / 'sticky' bit324 /* 'sticky' bit */ 325 325 if (st.st_mode &S_ISVTX) 326 326 psz_perm[9] = 't'; … … 425 425 intf_thread_t *p_intf = GtkGetIntf( GTK_WIDGET(button) ); 426 426 427 / / Toggle notebook427 /* Toggle notebook */ 428 428 if (p_intf->p_sys->p_notebook) 429 429 { … … 589 589 void onAddNetworkPlaylist(GtkButton *button, gpointer user_data) 590 590 { 591 GtkEntry *p_mrl = NULL; 592 const gchar *psz_mrl_name; 591 intf_thread_t *p_intf = GtkGetIntf( button ); 592 593 GtkEntry *p_mrl = NULL; 594 GtkCheckButton *p_network_transcode = NULL; 595 gboolean b_network_transcode; 596 const gchar *psz_mrl_name; 593 597 594 598 p_mrl = (GtkEntry*) lookup_widget(GTK_WIDGET(button),"entryMRL" ); 595 if (p_mrl) 596 { 597 psz_mrl_name = gtk_entry_get_text(p_mrl); 598 if (psz_mrl_name != NULL) 599 { 600 PlaylistAddItem(GTK_WIDGET(button), (gchar *)psz_mrl_name, 0, 0); 601 } 599 psz_mrl_name = gtk_entry_get_text(p_mrl); 600 601 p_network_transcode = (GtkCheckButton*) lookup_widget(GTK_WIDGET(button), "checkNetworkTranscode" ); 602 b_network_transcode = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(p_network_transcode)); 603 if (b_network_transcode) 604 { 605 msg_Dbg( p_intf, "Network transcode option selected." ); 606 onAddTranscodeToPlaylist(GTK_WIDGET(button), (gchar *)psz_mrl_name); 607 } 608 else 609 { 610 msg_Dbg( p_intf, "Network receiving selected." ); 611 PlaylistAddItem(GTK_WIDGET(button), (gchar *)psz_mrl_name, 0, 0); 602 612 } 603 613 } … … 637 647 /* end MJPEG only */ 638 648 649 GtkCheckButton *p_check_v4l_transcode = NULL; 650 gboolean b_v4l_transcode; 651 639 652 char **ppsz_options = NULL; /* list of options */ 640 653 int i_options=0; … … 724 737 /* end MJPEG only */ 725 738 726 PlaylistAddItem(GTK_WIDGET(button), (gchar*) &v4l_mrl, ppsz_options, i_options); 739 p_check_v4l_transcode = (GtkCheckButton*) lookup_widget(GTK_WIDGET(button), "checkV4LTranscode" ); 740 b_v4l_transcode = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(p_check_v4l_transcode)); 741 if (b_v4l_transcode) 742 { 743 msg_Dbg( p_intf, "Camera transcode option selected." ); 744 onAddTranscodeToPlaylist(GTK_WIDGET(button), (gchar *)v4l_mrl); 745 } 746 else 747 { 748 msg_Dbg( p_intf, "Camera reception option selected." ); 749 PlaylistAddItem(GTK_WIDGET(button), (gchar*) &v4l_mrl, ppsz_options, i_options); 750 } 727 751 } 728 752 … … 1019 1043 } 1020 1044 1045 /* Update the playlist */ 1046 playlist_t *p_playlist = (playlist_t *)vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST, FIND_ANYWHERE ); 1047 if( p_playlist == NULL ) return; 1048 1049 /* Get all the options. */ 1021 1050 i_pos = snprintf( &mrl[0], VLC_MAX_MRL, "sout"); 1022 1051 mrl[6] = '\0'; … … 1066 1095 /* option 2 */ 1067 1096 i_pos = 0; 1068 i_pos = snprintf( &ppsz_options[i_options++][i_pos], VLC_MAX_MRL - i_pos, " dst=" );1097 i_pos = snprintf( &ppsz_options[i_options++][i_pos], VLC_MAX_MRL - i_pos, "#" ); 1069 1098 if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0'; 1070 1099 … … 1082 1111 b_slp_announce = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(p_checkSLP)); 1083 1112 1084 if ( strncasecmp( (const char*)p_std_access, "display", 7 ) == 0) 1085 { 1086 i_pos += snprintf( &ppsz_options[i_options][i_pos], VLC_MAX_MRL - i_pos, "%s,", (char*)p_std_access); 1087 if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0'; 1113 i_pos += snprintf( &ppsz_options[i_options][i_pos], VLC_MAX_MRL - i_pos, "std{access=%s,", (char*)p_std_access); 1114 if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0'; 1115 i_pos += snprintf( &ppsz_options[i_options][i_pos], VLC_MAX_MRL - i_pos, "mux=%s,", (char*)p_std_muxer); 1116 if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0'; 1117 i_pos += snprintf( &ppsz_options[i_options][i_pos], VLC_MAX_MRL - i_pos, "url=%s", (char*)p_std_url); 1118 if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0'; 1119 1120 if (strncasecmp( (const char*)p_std_access, "udp", 3)==0) 1121 { 1122 if (b_sap_announce) 1123 { 1124 i_pos += snprintf( &ppsz_options[i_options][i_pos], VLC_MAX_MRL - i_pos, "sap=%s", (char*)p_std_announce); 1125 if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0'; 1126 } 1127 if (b_slp_announce) 1128 { 1129 i_pos += snprintf( &ppsz_options[i_options][i_pos], VLC_MAX_MRL - i_pos, "slp=%s", (char*)p_std_announce); 1130 if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0'; 1131 } 1132 } 1133 1134 i_std_ttl = gtk_spin_button_get_value_as_int(p_entryStdTTL); 1135 1136 i_pos += snprintf( &ppsz_options[i_options++][i_pos], VLC_MAX_MRL - i_pos, "ttl=%d}", (int)i_std_ttl); 1137 if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0'; 1138 1139 if (user_data != NULL) 1140 { 1141 msg_Dbg(p_intf, "Adding transcoding options to playlist item." ); 1088 1142 } 1089 1143 else 1090 1144 { 1091 i_pos += snprintf( &ppsz_options[i_options][i_pos], VLC_MAX_MRL - i_pos, "std{access=%s,", (char*)p_std_access); 1092 if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0'; 1093 i_pos += snprintf( &ppsz_options[i_options][i_pos], VLC_MAX_MRL - i_pos, "mux=%s,", (char*)p_std_muxer); 1094 if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0'; 1095 i_pos += snprintf( &ppsz_options[i_options][i_pos], VLC_MAX_MRL - i_pos, "url=%s", (char*)p_std_url); 1096 if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0'; 1097 1098 if (strncasecmp( (const char*)p_std_access, "udp", 3)==0) 1099 { 1100 if (b_sap_announce) 1101 { 1102 i_pos += snprintf( &ppsz_options[i_options][i_pos], VLC_MAX_MRL - i_pos, "sap=%s", (char*)p_std_announce); 1103 if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0'; 1104 } 1105 if (b_slp_announce) 1106 { 1107 i_pos += snprintf( &ppsz_options[i_options][i_pos], VLC_MAX_MRL - i_pos, "slp=%s", (char*)p_std_announce); 1108 if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0'; 1109 } 1110 } 1111 i_pos += snprintf( &ppsz_options[i_options][i_pos], VLC_MAX_MRL - i_pos, "}"); 1112 if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0'; 1113 1114 i_std_ttl = gtk_spin_button_get_value_as_int(p_entryStdTTL); 1115 1116 i_pos = snprintf( &ppsz_options[i_options++][0], VLC_MAX_MRL, "ttl=%d", (int)i_std_ttl); 1117 if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0'; 1118 } 1119 1120 PlaylistAddItem(GTK_WIDGET(button), (gchar*) &mrl, ppsz_options, i_options); 1121 } 1122 1123 1145 msg_Dbg(p_intf, "Adding --sout to playlist." ); 1146 PlaylistAddItem(GTK_WIDGET(button), (gchar*) &mrl, ppsz_options, i_options); 1147 } 1148 } 1124 1149 1125 1150 void onEntryStdAccessChanged(GtkEditable *editable, gpointer user_data) modules/gui/pda/pda_interface.c
r4219568 r5f02f26 1 /* This file was created automatically by glade2 and fixed by bootstrap */ 2 3 #include <vlc/vlc.h> 1 /* 2 * DO NOT EDIT THIS FILE - it is generated by Glade. 3 */ 4 5 #ifdef HAVE_CONFIG_H 6 # include <config.h> 7 #endif 4 8 5 9 #include <sys/types.h> … … 70 74 GtkWidget *entryNetworkProtocolType; 71 75 GtkWidget *labelNetworkProtocol; 76 GtkWidget *labelNetworkTranscode; 77 GtkWidget *checkNetworkTranscode; 72 78 GtkWidget *hbox13; 73 79 GtkWidget *AddNetworkPlaylist; … … 117 123 GtkObject *entryV4LDecimation_adj; 118 124 GtkWidget *entryV4LDecimation; 125 GtkWidget *labelV4LTranscode; 126 GtkWidget *checkV4LTranscode; 119 127 GtkWidget *hbox16; 120 128 GtkWidget *AddCameraToPlaylist; … … 159 167 GtkWidget *labelAudioBitrate; 160 168 GtkWidget *comboStdAccess; 161 GList *comboStdAccess_items = NULL;162 169 GtkWidget *entryStdAccess; 163 170 GtkWidget *labelSAP; … … 305 312 306 313 gtk_toolbar_append_widget (GTK_TOOLBAR (toolbar), timeLabel, NULL, NULL); 307 gtk_label_set_justify (GTK_LABEL (timeLabel), GTK_JUSTIFY_CENTER);308 314 309 315 timeSlider = gtk_hscale_new (GTK_ADJUSTMENT (gtk_adjustment_new (0, 0, 100, 1, 6.25, 0))); … … 362 368 gtk_widget_show (File); 363 369 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), 0), File); 364 gtk_label_set_justify (GTK_LABEL (File), GTK_JUSTIFY_CENTER);365 370 366 371 vbox5 = gtk_vbox_new (FALSE, 0); … … 377 382 gtk_widget_set_size_request (hbox12, 247, 26); 378 383 379 labelNetworkMRL = gtk_label_new (_("MRL :"));384 labelNetworkMRL = gtk_label_new (_("MRL:")); 380 385 gtk_widget_set_name (labelNetworkMRL, "labelNetworkMRL"); 381 386 gtk_widget_show (labelNetworkMRL); 382 387 gtk_box_pack_start (GTK_BOX (hbox12), labelNetworkMRL, FALSE, FALSE, 0); 383 388 gtk_widget_set_size_request (labelNetworkMRL, 35, 16); 384 gtk_label_set_justify (GTK_LABEL (labelNetworkMRL), GTK_JUSTIFY_CENTER);385 389 386 390 comboMRL = gtk_combo_new (); … … 390 394 gtk_widget_show (comboMRL); 391 395 gtk_box_pack_start (GTK_BOX (hbox12), comboMRL, TRUE, TRUE, 0); 392 comboMRL_items = g_list_append (comboMRL_items, (gpointer) "udp://@:1234");393 comboMRL_items = g_list_append (comboMRL_items, (gpointer) "udp6://@:1234");394 comboMRL_items = g_list_append (comboMRL_items, (gpointer) "rtp://");395 comboMRL_items = g_list_append (comboMRL_items, (gpointer) "rtp6://");396 comboMRL_items = g_list_append (comboMRL_items, (gpointer) "ftp://");397 comboMRL_items = g_list_append (comboMRL_items, (gpointer) "http://");398 comboMRL_items = g_list_append (comboMRL_items, (gpointer) "mms://");396 comboMRL_items = g_list_append (comboMRL_items, (gpointer) _("udp://@:1234")); 397 comboMRL_items = g_list_append (comboMRL_items, (gpointer) _("udp6://@:1234")); 398 comboMRL_items = g_list_append (comboMRL_items, (gpointer) _("rtp://")); 399 comboMRL_items = g_list_append (comboMRL_items, (gpointer) _("rtp6://")); 400 comboMRL_items = g_list_append (comboMRL_items, (gpointer) _("ftp://")); 401 comboMRL_items = g_list_append (comboMRL_items, (gpointer) _("http://")); 402 comboMRL_items = g_list_append (comboMRL_items, (gpointer) _("mms://")); 399 403 gtk_combo_set_popdown_strings (GTK_COMBO (comboMRL), comboMRL_items); 400 404 g_list_free (comboMRL_items); … … 410 414 gtk_widget_show (hseparator15); 411 415 gtk_box_pack_start (GTK_BOX (vbox5), hseparator15, FALSE, FALSE, 0); 412 gtk_widget_set_size_request (hseparator15, - 1, 10);416 gtk_widget_set_size_request (hseparator15, -2, 10); 413 417 414 418 table2 = gtk_table_new (6, 2, FALSE); … … 423 427 (GtkAttachOptions) (GTK_FILL), 424 428 (GtkAttachOptions) (0), 0, 0); 429 gtk_label_set_justify (GTK_LABEL (labelNetworkPort), GTK_JUSTIFY_LEFT); 425 430 gtk_misc_set_alignment (GTK_MISC (labelNetworkPort), 0, 0.5); 426 431 … … 431 436 (GtkAttachOptions) (GTK_FILL), 432 437 (GtkAttachOptions) (0), 0, 0); 438 gtk_label_set_justify (GTK_LABEL (labelNetworkAddress), GTK_JUSTIFY_LEFT); 433 439 gtk_misc_set_alignment (GTK_MISC (labelNetworkAddress), 0, 0.5); 434 440 … … 479 485 (GtkAttachOptions) (GTK_FILL), 480 486 (GtkAttachOptions) (0), 0, 0); 487 gtk_label_set_justify (GTK_LABEL (labelNetworkType), GTK_JUSTIFY_LEFT); 481 488 gtk_misc_set_alignment (GTK_MISC (labelNetworkType), 0, 0.5); 482 489 … … 510 517 (GtkAttachOptions) (GTK_FILL), 511 518 (GtkAttachOptions) (0), 0, 0); 519 gtk_label_set_justify (GTK_LABEL (labelNetworkProtocol), GTK_JUSTIFY_LEFT); 512 520 gtk_misc_set_alignment (GTK_MISC (labelNetworkProtocol), 0, 0.5); 521 522 labelNetworkTranscode = gtk_label_new (_("Transcode:")); 523 gtk_widget_set_name (labelNetworkTranscode, "labelNetworkTranscode"); 524 gtk_widget_show (labelNetworkTranscode); 525 gtk_table_attach (GTK_TABLE (table2), labelNetworkTranscode, 0, 1, 4, 5, 526 (GtkAttachOptions) (GTK_FILL), 527 (GtkAttachOptions) (0), 0, 0); 528 gtk_label_set_justify (GTK_LABEL (labelNetworkTranscode), GTK_JUSTIFY_LEFT); 529 gtk_misc_set_alignment (GTK_MISC (labelNetworkTranscode), 0, 0.5); 530 531 checkNetworkTranscode = gtk_check_button_new_with_mnemonic (_("enable")); <
