Changeset 5f02f2623de11a0c63cb3aea5569339351ea22af

Show
Ignore:
Timestamp:
29/02/04 23:59:59 (5 years ago)
Author:
Jean-Paul Saman <jpsaman@videolan.org>
git-committer:
Jean-Paul Saman <jpsaman@videolan.org> 1078095599 +0000
git-parent:

[9e8b6d1f56b15b6c830ab8cb0d0550a8894b54dd]

git-author:
Jean-Paul Saman <jpsaman@videolan.org> 1078095599 +0000
Message:

Updated PDA interface.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/gui/pda/pda.c

    r405c632 r5f02f26  
    33 ***************************************************************************** 
    44 * Copyright (C) 2002 VideoLAN 
    5  * $Id: pda.c,v 1.21 2004/02/13 10:09:46 jpsaman Exp $ 
     5 * $Id: pda.c,v 1.22 2004/02/29 22:59:59 jpsaman Exp $ 
    66 * 
    77 * Authors: Jean-Paul Saman <jpsaman@wxs.nl> 
     
    6464 *****************************************************************************/ 
    6565vlc_module_begin(); 
    66     set_description( _("PDA Linux Gtk2+ interface") ); 
     66    set_description( N_("PDA Linux Gtk2+ interface") ); 
    6767//    add_bool( "pda-autoplayfile", 1, GtkAutoPlayFile, AUTOPLAYFILE_TEXT, AUTOPLAYFILE_LONGTEXT, VLC_TRUE ); 
    6868    set_capability( "interface", 70 ); 
     
    215215    /* Insert columns 0 */ 
    216216    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); 
    218218    p_column = gtk_tree_view_get_column(p_intf->p_sys->p_tvfile, 0 ); 
    219219    gtk_tree_view_column_add_attribute(p_column, p_renderer, "text", 0 ); 
     
    221221    /* Insert columns 1 */ 
    222222    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); 
    224224    p_column = gtk_tree_view_get_column(p_intf->p_sys->p_tvfile, 1 ); 
    225225    gtk_tree_view_column_add_attribute(p_column, p_renderer, "text", 1 ); 
     
    227227    /* Insert columns 2 */ 
    228228    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); 
    230230    p_column = gtk_tree_view_get_column(p_intf->p_sys->p_tvfile, 2 ); 
    231231    gtk_tree_view_column_add_attribute(p_column, p_renderer, "text", 2 ); 
     
    233233    /* Insert columns 3 */ 
    234234    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); 
    236236    p_column = gtk_tree_view_get_column(p_intf->p_sys->p_tvfile, 3 ); 
    237237    gtk_tree_view_column_add_attribute(p_column, p_renderer, "text", 3 ); 
     
    239239    /* Insert columns 4 */ 
    240240    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); 
    242242    p_column = gtk_tree_view_get_column(p_intf->p_sys->p_tvfile, 4 ); 
    243243    gtk_tree_view_column_add_attribute(p_column, p_renderer, "text", 4 ); 
     
    270270    /* Columns 1 */ 
    271271    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); 
    273273    p_column = gtk_tree_view_get_column(p_intf->p_sys->p_tvplaylist, 0 ); 
    274274    gtk_tree_view_column_add_attribute(p_column, p_renderer, "text", 0 ); 
     
    276276    /* Column 2 */ 
    277277    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); 
    279279    p_column = gtk_tree_view_get_column(p_intf->p_sys->p_tvplaylist, 1 ); 
    280280    gtk_tree_view_column_add_attribute(p_column, p_renderer, "text", 1 ); 
     
    283283    /* Column 3 - is a hidden column used for reliable deleting items from the underlying playlist */ 
    284284    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); 
    286286    p_column = gtk_tree_view_get_column(p_intf->p_sys->p_tvplaylist, 2 ); 
    287287    gtk_tree_view_column_add_attribute(p_column, p_renderer, "text", 2 ); 
  • modules/gui/pda/pda.glade

    rc14327c r5f02f26  
    309309              <property name="height_request">16</property> 
    310310              <property name="visible">True</property> 
    311               <property name="label">MRL:</property> 
     311              <property name="label" translatable="yes">MRL:</property> 
    312312              <property name="use_underline">False</property> 
    313313              <property name="use_markup">False</property> 
     
    345345              <property name="visibility">True</property> 
    346346              <property name="max_length">0</property> 
    347               <property name="text"></property> 
     347              <property name="text" translatable="yes"></property> 
    348348              <property name="has_frame">True</property> 
    349               <property name="invisible_char">*</property> 
     349              <property name="invisible_char" translatable="yes">*</property> 
    350350              <property name="activates_default">True</property> 
    351351            </widget> 
     
    361361                  <property name="visible">True</property> 
    362362                  <property name="can_focus">True</property> 
    363                   <property name="label">udp://@:1234</property> 
     363                  <property name="label" translatable="yes">udp://@:1234</property> 
    364364                </widget> 
    365365              </child> 
     
    369369                  <property name="visible">True</property> 
    370370                  <property name="can_focus">True</property> 
    371                   <property name="label">udp6://@:1234</property> 
     371                  <property name="label" translatable="yes">udp6://@:1234</property> 
    372372                </widget> 
    373373              </child> 
     
    377377                  <property name="visible">True</property> 
    378378                  <property name="can_focus">True</property> 
    379                   <property name="label">rtp://</property> 
     379                  <property name="label" translatable="yes">rtp://</property> 
    380380                </widget> 
    381381              </child> 
     
    385385                  <property name="visible">True</property> 
    386386                  <property name="can_focus">True</property> 
    387                   <property name="label">rtp6://</property> 
     387                  <property name="label" translatable="yes">rtp6://</property> 
    388388                </widget> 
    389389              </child> 
     
    393393                  <property name="visible">True</property> 
    394394                  <property name="can_focus">True</property> 
    395                   <property name="label">ftp://</property> 
     395                  <property name="label" translatable="yes">ftp://</property> 
    396396                </widget> 
    397397              </child> 
     
    401401                  <property name="visible">True</property> 
    402402                  <property name="can_focus">True</property> 
    403                   <property name="label">http://</property> 
     403                  <property name="label" translatable="yes">http://</property> 
    404404                </widget> 
    405405              </child> 
     
    409409                  <property name="visible">True</property> 
    410410                  <property name="can_focus">True</property> 
    411                   <property name="label">mms://</property> 
     411                  <property name="label" translatable="yes">mms://</property> 
    412412                </widget> 
    413413              </child> 
     
    536536              <property name="visibility">True</property> 
    537537              <property name="max_length">0</property> 
    538               <property name="text"></property> 
     538              <property name="text" translatable="yes"></property> 
    539539              <property name="has_frame">True</property> 
    540               <property name="invisible_char">*</property> 
     540              <property name="invisible_char" translatable="yes">*</property> 
    541541              <property name="activates_default">False</property> 
    542542              <signal name="changed" handler="NetworkBuildMRL" last_modification_time="Sat, 08 Nov 2003 13:34:30 GMT"/> 
     
    576576              <property name="visibility">True</property> 
    577577              <property name="max_length">0</property> 
    578               <property name="text"></property> 
     578              <property name="text" translatable="yes"></property> 
    579579              <property name="has_frame">True</property> 
    580               <property name="invisible_char">*</property> 
     580              <property name="invisible_char" translatable="yes">*</property> 
    581581              <property name="activates_default">True</property> 
    582582              <signal name="changed" handler="NetworkBuildMRL" last_modification_time="Sat, 08 Nov 2003 13:34:45 GMT"/> 
     
    656656              <property name="visibility">True</property> 
    657657              <property name="max_length">0</property> 
    658               <property name="text"></property> 
     658              <property name="text" translatable="yes"></property> 
    659659              <property name="has_frame">True</property> 
    660               <property name="invisible_char">*</property> 
     660              <property name="invisible_char" translatable="yes">*</property> 
    661661              <property name="activates_default">False</property> 
    662662              <signal name="changed" handler="NetworkBuildMRL" last_modification_time="Sat, 08 Nov 2003 13:35:01 GMT"/> 
     
    673673                  <property name="visible">True</property> 
    674674                  <property name="can_focus">True</property> 
    675                   <property name="label">udp</property> 
     675                  <property name="label" translatable="yes">udp</property> 
    676676                </widget> 
    677677              </child> 
     
    681681                  <property name="visible">True</property> 
    682682                  <property name="can_focus">True</property> 
    683                   <property name="label">udp6</property> 
     683                  <property name="label" translatable="yes">udp6</property> 
    684684                </widget> 
    685685              </child> 
     
    689689                  <property name="visible">True</property> 
    690690                  <property name="can_focus">True</property> 
    691                   <property name="label">rtp</property> 
     691                  <property name="label" translatable="yes">rtp</property> 
    692692                </widget> 
    693693              </child> 
     
    697697                  <property name="visible">True</property> 
    698698                  <property name="can_focus">True</property> 
    699                   <property name="label">rtp4</property> 
     699                  <property name="label" translatable="yes">rtp4</property> 
    700700                </widget> 
    701701              </child> 
     
    705705                  <property name="visible">True</property> 
    706706                  <property name="can_focus">True</property> 
    707                   <property name="label">ftp</property> 
     707                  <property name="label" translatable="yes">ftp</property> 
    708708                </widget> 
    709709              </child> 
     
    713713                  <property name="visible">True</property> 
    714714                  <property name="can_focus">True</property> 
    715                   <property name="label">http</property> 
     715                  <property name="label" translatable="yes">http</property> 
    716716                </widget> 
    717717              </child> 
     
    721721                  <property name="visible">True</property> 
    722722                  <property name="can_focus">True</property> 
    723                   <property name="label">sout</property> 
     723                  <property name="label" translatable="yes">sout</property> 
    724724                </widget> 
    725725              </child> 
     
    729729                  <property name="visible">True</property> 
    730730                  <property name="can_focus">True</property> 
    731                   <property name="label">mms</property> 
     731                  <property name="label" translatable="yes">mms</property> 
    732732                </widget> 
    733733              </child> 
     
    767767            </packing> 
    768768          </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> 
    769814        </widget> 
    770815        <packing> 
     
    860905            <widget class="GtkTable" id="tableV4L"> 
    861906              <property name="visible">True</property> 
    862               <property name="n_rows">12</property> 
     907              <property name="n_rows">13</property> 
    863908              <property name="n_columns">2</property> 
    864909              <property name="homogeneous">False</property> 
     
    11701215                  <property name="visibility">True</property> 
    11711216                  <property name="max_length">0</property> 
    1172                   <property name="text"></property> 
     1217                  <property name="text" translatable="yes"></property> 
    11731218                  <property name="has_frame">True</property> 
    1174                   <property name="invisible_char">*</property> 
     1219                  <property name="invisible_char" translatable="yes">*</property> 
    11751220                  <property name="activates_default">True</property> 
    11761221                </widget> 
     
    12341279                  <property name="visibility">True</property> 
    12351280                  <property name="max_length">0</property> 
    1236                   <property name="text"></property> 
     1281                  <property name="text" translatable="yes"></property> 
    12371282                  <property name="has_frame">True</property> 
    1238                   <property name="invisible_char">*</property> 
     1283                  <property name="invisible_char" translatable="yes">*</property> 
    12391284                  <property name="activates_default">True</property> 
    12401285                </widget> 
     
    13281373                  <property name="visibility">True</property> 
    13291374                  <property name="max_length">0</property> 
    1330                   <property name="text"></property> 
     1375                  <property name="text" translatable="yes"></property> 
    13311376                  <property name="has_frame">True</property> 
    1332                   <property name="invisible_char">*</property> 
     1377                  <property name="invisible_char" translatable="yes">*</property> 
    13331378                  <property name="activates_default">True</property> 
    13341379                </widget> 
     
    14001445                  <property name="visibility">True</property> 
    14011446                  <property name="max_length">0</property> 
    1402                   <property name="text"></property> 
     1447                  <property name="text" translatable="yes"></property> 
    14031448                  <property name="has_frame">True</property> 
    1404                   <property name="invisible_char">*</property> 
     1449                  <property name="invisible_char" translatable="yes">*</property> 
    14051450                  <property name="activates_default">True</property> 
    14061451                </widget> 
     
    15641609                  <property name="visibility">True</property> 
    15651610                  <property name="max_length">0</property> 
    1566                   <property name="text"></property> 
     1611                  <property name="text" translatable="yes"></property> 
    15671612                  <property name="has_frame">True</property> 
    1568                   <property name="invisible_char">*</property> 
     1613                  <property name="invisible_char" translatable="yes">*</property> 
    15691614                  <property name="activates_default">True</property> 
    15701615                </widget> 
     
    16651710                  <property name="bottom_attach">12</property> 
    16661711                  <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> 
    16671757                  <property name="y_options"></property> 
    16681758                </packing> 
     
    18111901                  <property name="visibility">True</property> 
    18121902                  <property name="max_length">0</property> 
    1813                   <property name="text"></property> 
     1903                  <property name="text" translatable="yes"></property> 
    18141904                  <property name="has_frame">True</property> 
    1815                   <property name="invisible_char">*</property> 
     1905                  <property name="invisible_char" translatable="yes">*</property> 
    18161906                  <property name="activates_default">True</property> 
    18171907                </widget> 
     
    21522242                  <property name="visibility">True</property> 
    21532243                  <property name="max_length">0</property> 
    2154                   <property name="text"></property> 
     2244                  <property name="text" translatable="yes"></property> 
    21552245                  <property name="has_frame">True</property> 
    2156                   <property name="invisible_char">*</property> 
     2246                  <property name="invisible_char" translatable="yes">*</property> 
    21572247                  <property name="activates_default">True</property> 
    21582248                </widget> 
     
    22232313                  <property name="visibility">True</property> 
    22242314                  <property name="max_length">0</property> 
    2225                   <property name="text"></property> 
     2315                  <property name="text" translatable="yes"></property> 
    22262316                  <property name="has_frame">True</property> 
    2227                   <property name="invisible_char">*</property> 
     2317                  <property name="invisible_char" translatable="yes">*</property> 
    22282318                  <property name="activates_default">True</property> 
    22292319                </widget> 
     
    23482438                  <property name="visibility">True</property> 
    23492439                  <property name="max_length">0</property> 
    2350                   <property name="text"></property> 
     2440                  <property name="text" translatable="yes"></property> 
    23512441                  <property name="has_frame">True</property> 
    2352                   <property name="invisible_char">*</property> 
     2442                  <property name="invisible_char" translatable="yes">*</property> 
    23532443                  <property name="activates_default">True</property> 
    23542444                </widget> 
     
    25452635                  <property name="visibility">True</property> 
    25462636                  <property name="max_length">0</property> 
    2547                   <property name="text"></property> 
     2637                  <property name="text" translatable="yes"></property> 
    25482638                  <property name="has_frame">True</property> 
    2549                   <property name="invisible_char">*</property> 
     2639                  <property name="invisible_char" translatable="yes">*</property> 
    25502640                  <property name="activates_default">True</property> 
    25512641                  <signal name="changed" handler="onEntryStdAccessChanged" last_modification_time="Sun, 30 Nov 2003 22:35:14 GMT"/> 
     
    25702660                      <property name="visible">True</property> 
    25712661                      <property name="can_focus">True</property> 
    2572                       <property name="label" translatable="yes">display</property> 
     2662 
     2663                      <child> 
     2664                    <placeholder/> 
     2665                      </child> 
    25732666                    </widget> 
    25742667                  </child> 
     
    27632856                  <property name="visibility">True</property> 
    27642857                  <property name="max_length">0</property> 
    2765                   <property name="text"></property> 
     2858                  <property name="text" translatable="yes"></property> 
    27662859                  <property name="has_frame">True</property> 
    2767                   <property name="invisible_char">*</property> 
     2860                  <property name="invisible_char" translatable="yes">*</property> 
    27682861                  <property name="activates_default">False</property> 
    27692862                </widget> 
  • modules/gui/pda/pda_callbacks.c

    r405c632 r5f02f26  
    33 ***************************************************************************** 
    44 * Copyright (C) 2000, 2001 VideoLAN 
    5  * $Id: pda_callbacks.c,v 1.28 2004/02/13 10:09:46 jpsaman Exp $ 
     5 * $Id: pda_callbacks.c,v 1.29 2004/02/29 22:59:59 jpsaman Exp $ 
    66 * 
    77 * Authors: Jean-Paul Saman <jpsaman@wxs.nl> 
     
    111111 
    112112        p_play_model = gtk_tree_view_get_model(p_tvplaylist); 
    113  
     113         
    114114        if (p_play_model) 
    115115        { 
     
    322322    if (st.st_mode & S_IXOTH) 
    323323    { 
    324         // 'sticky' bit 
     324        /* 'sticky' bit */ 
    325325        if (st.st_mode &S_ISVTX) 
    326326            psz_perm[9] = 't'; 
     
    425425    intf_thread_t *p_intf = GtkGetIntf( GTK_WIDGET(button) ); 
    426426 
    427     // Toggle notebook 
     427    /* Toggle notebook */ 
    428428    if (p_intf->p_sys->p_notebook) 
    429429    { 
     
    589589void onAddNetworkPlaylist(GtkButton *button, gpointer user_data) 
    590590{ 
    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; 
    593597 
    594598    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); 
    602612    } 
    603613} 
     
    637647    /* end MJPEG only */ 
    638648 
     649    GtkCheckButton  *p_check_v4l_transcode = NULL; 
     650    gboolean         b_v4l_transcode; 
     651     
    639652    char **ppsz_options = NULL; /* list of options */ 
    640653    int  i_options=0; 
     
    724737    /* end MJPEG only */ 
    725738 
    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    } 
    727751} 
    728752 
     
    10191043    } 
    10201044 
     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. */ 
    10211050    i_pos = snprintf( &mrl[0], VLC_MAX_MRL, "sout"); 
    10221051    mrl[6] = '\0'; 
     
    10661095    /* option 2 */ 
    10671096    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, "#" ); 
    10691098    if (i_pos>=VLC_MAX_MRL) ppsz_options[i_options][VLC_MAX_MRL-1] = '\0'; 
    10701099 
     
    10821111    b_slp_announce = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(p_checkSLP)); 
    10831112 
    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." ); 
    10881142    } 
    10891143    else 
    10901144    { 
    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
    11241149 
    11251150void 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 
    48 
    59#include <sys/types.h> 
     
    7074  GtkWidget *entryNetworkProtocolType; 
    7175  GtkWidget *labelNetworkProtocol; 
     76  GtkWidget *labelNetworkTranscode; 
     77  GtkWidget *checkNetworkTranscode; 
    7278  GtkWidget *hbox13; 
    7379  GtkWidget *AddNetworkPlaylist; 
     
    117123  GtkObject *entryV4LDecimation_adj; 
    118124  GtkWidget *entryV4LDecimation; 
     125  GtkWidget *labelV4LTranscode; 
     126  GtkWidget *checkV4LTranscode; 
    119127  GtkWidget *hbox16; 
    120128  GtkWidget *AddCameraToPlaylist; 
     
    159167  GtkWidget *labelAudioBitrate; 
    160168  GtkWidget *comboStdAccess; 
    161   GList *comboStdAccess_items = NULL; 
    162169  GtkWidget *entryStdAccess; 
    163170  GtkWidget *labelSAP; 
     
    305312 
    306313  gtk_toolbar_append_widget (GTK_TOOLBAR (toolbar), timeLabel, NULL, NULL); 
    307   gtk_label_set_justify (GTK_LABEL (timeLabel), GTK_JUSTIFY_CENTER); 
    308314 
    309315  timeSlider = gtk_hscale_new (GTK_ADJUSTMENT (gtk_adjustment_new (0, 0, 100, 1, 6.25, 0))); 
     
    362368  gtk_widget_show (File); 
    363369  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); 
    365370 
    366371  vbox5 = gtk_vbox_new (FALSE, 0); 
     
    377382  gtk_widget_set_size_request (hbox12, 247, 26); 
    378383 
    379   labelNetworkMRL = gtk_label_new (_("MRL :")); 
     384  labelNetworkMRL = gtk_label_new (_("MRL:")); 
    380385  gtk_widget_set_name (labelNetworkMRL, "labelNetworkMRL"); 
    381386  gtk_widget_show (labelNetworkMRL); 
    382387  gtk_box_pack_start (GTK_BOX (hbox12), labelNetworkMRL, FALSE, FALSE, 0); 
    383388  gtk_widget_set_size_request (labelNetworkMRL, 35, 16); 
    384   gtk_label_set_justify (GTK_LABEL (labelNetworkMRL), GTK_JUSTIFY_CENTER); 
    385389 
    386390  comboMRL = gtk_combo_new (); 
     
    390394  gtk_widget_show (comboMRL); 
    391395  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://")); 
    399403  gtk_combo_set_popdown_strings (GTK_COMBO (comboMRL), comboMRL_items); 
    400404  g_list_free (comboMRL_items); 
     
    410414  gtk_widget_show (hseparator15); 
    411415  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); 
    413417 
    414418  table2 = gtk_table_new (6, 2, FALSE); 
     
    423427                    (GtkAttachOptions) (GTK_FILL), 
    424428                    (GtkAttachOptions) (0), 0, 0); 
     429  gtk_label_set_justify (GTK_LABEL (labelNetworkPort), GTK_JUSTIFY_LEFT); 
    425430  gtk_misc_set_alignment (GTK_MISC (labelNetworkPort), 0, 0.5); 
    426431 
     
    431436                    (GtkAttachOptions) (GTK_FILL), 
    432437                    (GtkAttachOptions) (0), 0, 0); 
     438  gtk_label_set_justify (GTK_LABEL (labelNetworkAddress), GTK_JUSTIFY_LEFT); 
    433439  gtk_misc_set_alignment (GTK_MISC (labelNetworkAddress), 0, 0.5); 
    434440 
     
    479485                    (GtkAttachOptions) (GTK_FILL), 
    480486                    (GtkAttachOptions) (0), 0, 0); 
     487  gtk_label_set_justify (GTK_LABEL (labelNetworkType), GTK_JUSTIFY_LEFT); 
    481488  gtk_misc_set_alignment (GTK_MISC (labelNetworkType), 0, 0.5); 
    482489 
     
    510517                    (GtkAttachOptions) (GTK_FILL), 
    511518                    (GtkAttachOptions) (0), 0, 0); 
     519  gtk_label_set_justify (GTK_LABEL (labelNetworkProtocol), GTK_JUSTIFY_LEFT); 
    512520  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"));