Changeset b9e9cb420db33d098d3d9edea1f3e9d84d5fb18f

Show
Ignore:
Timestamp:
06/07/02 16:30:41 (6 years ago)
Author:
Sam Hocevar <sam@videolan.org>
git-committer:
Sam Hocevar <sam@videolan.org> 1023460241 +0000
git-parent:

[d547ff04bf52ebc411bf4014c7fd97295274e5e4]

git-author:
Sam Hocevar <sam@videolan.org> 1023460241 +0000
Message:
  • ./src/playlist/playlist.c: lots of playlist behaviour enhancements.
  • ./src/misc/objects.c: we do not hang on attempt to destroy an object with
    a non-zero reference count, but we still complain.
  • ./plugins/gtk/gtk_control.c, plugins/gtk/gtk_playlist.c: most controls such
    as play, pause, stop, next, fast etc. work again.
  • ./plugins/gtk/gnome_*: got rid of lots of useless wrappers which were a
    workaround for a bug in Glade. Instead, bootstrap.sh does the Glade fixes.
  • ./plugins/ffmpeg/ffmpeg.c: if there is already a video output with the
    appropriate properties, we use it.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • ChangeLog

    re9de293 rb9e9cb4  
    66Not released yet 
    77 
     8  * ./src/playlist/playlist.c: lots of playlist behaviour enhancements. 
     9  * ./src/misc/objects.c: we do not hang on attempt to destroy an object with 
     10    a non-zero reference count, but we still complain. 
     11  * ./plugins/gtk/gtk_control.c, plugins/gtk/gtk_playlist.c: most controls such 
     12    as play, pause, stop, next, fast etc. work again. 
     13  * ./plugins/gtk/gnome_*: got rid of lots of useless wrappers which were a 
     14    workaround for a bug in Glade. Instead, bootstrap.sh does the Glade fixes. 
     15  * ./plugins/ffmpeg/ffmpeg.c: if there is already a video output with the 
     16    appropriate properties, we use it. 
     17  * ./Makefile: minor fix for the BeOS' make-package (icon loss). 
     18  * ./plugins/spudec/spu_decoder.c: release vout when we close spudec. 
     19  * ./plugins/ac3_spdif/ac3_spdif.c: only report initiliazation error when it 
     20    is really an error. 
     21  * ./include/video_output.h: added mouse coordinates to vout struct. 
     22  * ./plugins/mpeg_vdec/video_parser.c: check that p_vpar->p_vout is available 
     23    before detaching it. 
    824  * ./plugins/gtk/gtk_callbacks.c: fixed a segfault when switching to 
    925    fullscreen from the popup menu. 
  • bootstrap.sh

    r3722c40 rb9e9cb4  
    22 
    33##  bootstrap.sh file for vlc, the VideoLAN Client 
    4 ##  $Id: bootstrap.sh,v 1.3 2002/06/01 17:11:41 sam Exp $ 
     4##  $Id: bootstrap.sh,v 1.4 2002/06/07 14:30:40 sam Exp $ 
    55## 
    66##  Authors: Samuel Hocevar <sam@zoy.org> 
     
    7070        | sed 's#_("/dev/dvd")#"/dev/dvd"#' \ 
    7171        | sed 's#_(\("./."\))#\1#' \ 
     72        | sed 's/_GLADE_SUX_\([^,]*\), NULL/, "\1"/' \ 
    7273        >> /tmp/$$.$file.bak 
    7374    mv -f /tmp/$$.$file.bak plugins/gtk/$file 
  • include/playlist.h

    r7291e0a rb9e9cb4  
    33 ***************************************************************************** 
    44 * Copyright (C) 1999, 2000, 2001, 2002 VideoLAN 
    5  * $Id: playlist.h,v 1.5 2002/06/04 00:11:12 sam Exp $ 
     5 * $Id: playlist.h,v 1.6 2002/06/07 14:30:40 sam Exp $ 
    66 * 
    77 * Authors: Samuel Hocevar <sam@zoy.org> 
     
    4343    VLC_COMMON_MEMBERS 
    4444 
    45     /* Thread properties and lock */ 
    46     vlc_mutex_t           change_lock; 
     45    int                   i_index;                          /* current index */ 
     46    int                   i_status; 
     47    int                   i_size;                              /* total size */ 
    4748 
    48     int                   i_index;                          /* current index */ 
    49     int                   i_size;                              /* total size */ 
    5049    playlist_item_t **    pp_items; 
    51  
    52     int                   i_status; 
    5350 
    5451    input_thread_t *      p_input; 
     
    5653 
    5754/* Used by playlist_Add */ 
    58 #define PLAYLIST_START            0 
     55#define PLAYLIST_INSERT      0x0001 
     56#define PLAYLIST_REPLACE     0x0002 
     57#define PLAYLIST_APPEND      0x0004 
     58#define PLAYLIST_GO          0x0008 
     59 
    5960#define PLAYLIST_END             -1 
    6061 
     
    9293VLC_EXPORT( void, playlist_Command, ( playlist_t *, int, int ) ); 
    9394 
    94 VLC_EXPORT( int,  playlist_Add,    ( playlist_t *, int, const char * ) ); 
     95VLC_EXPORT( int,  playlist_Add,    ( playlist_t *, const char *, int, int ) ); 
    9596VLC_EXPORT( int,  playlist_Delete, ( playlist_t *, int ) ); 
    9697 
  • include/vlc/vlc.h

    r9d64d52 rb9e9cb4  
    33 ***************************************************************************** 
    44 * Copyright (C) 1998, 1999, 2000 VideoLAN 
    5  * $Id: vlc.h,v 1.2 2002/06/02 13:38:03 gbazin Exp $ 
     5 * $Id: vlc.h,v 1.3 2002/06/07 14:30:40 sam Exp $ 
    66 * 
    77 * This program is free software; you can redistribute it and/or modify 
     
    9292 
    9393vlc_error_t     vlc_add_intf   ( vlc_t *, char *, vlc_bool_t ); 
    94 vlc_error_t     vlc_add_target ( vlc_t *, char * ); 
     94vlc_error_t     vlc_add_target ( vlc_t *, char *, int, int ); 
    9595 
    9696vlc_status_t    vlc_status     ( vlc_t * ); 
  • include/vlc_objects.h

    r211d6ba rb9e9cb4  
    33 ***************************************************************************** 
    44 * Copyright (C) 2002 VideoLAN 
    5  * $Id: vlc_objects.h,v 1.2 2002/06/02 09:03:53 sam Exp $ 
     5 * $Id: vlc_objects.h,v 1.3 2002/06/07 14:30:40 sam Exp $ 
    66 * 
    77 * Authors: Samuel Hocevar <sam@zoy.org> 
     
    2727#define VLC_OBJECT_INTF       (-3) 
    2828#define VLC_OBJECT_PLAYLIST   (-4) 
    29 #define VLC_OBJECT_INPUT      (-5) 
    30 #define VLC_OBJECT_DECODER    (-6) 
    31 #define VLC_OBJECT_VOUT       (-7) 
    32 #define VLC_OBJECT_AOUT       (-8) 
     29#define VLC_OBJECT_ITEM       (-5) 
     30#define VLC_OBJECT_INPUT      (-6) 
     31#define VLC_OBJECT_DECODER    (-7) 
     32#define VLC_OBJECT_VOUT       (-8) 
     33#define VLC_OBJECT_AOUT       (-9) 
    3334#define VLC_OBJECT_PRIVATE  (-666) 
    3435 
  • include/vlc_symbols.h

    r7291e0a rb9e9cb4  
    9393    int (* __network_ChannelCreate_inner) ( vlc_object_t * ) ; 
    9494    void (* playlist_Command_inner) ( playlist_t *, int, int ) ; 
    95     int (* playlist_Add_inner) ( playlist_t *, int, const char * ) ; 
     95    int (* playlist_Add_inner) ( playlist_t *, const char *, int, int ) ; 
    9696    int (* playlist_Delete_inner) ( playlist_t *, int ) ; 
    9797    vout_thread_t * (* __vout_CreateThread_inner) ( vlc_object_t *, int, int, u32, int ) ; 
  • plugins/avi/avi.c

    r9e3ab28 rb9e9cb4  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001 VideoLAN 
    5  * $Id: avi.c,v 1.21 2002/06/01 12:31:58 sam Exp $ 
     5 * $Id: avi.c,v 1.22 2002/06/07 14:30:40 sam Exp $ 
    66 * Authors: Laurent Aimar <fenrir@via.ecp.fr> 
    77 *  
     
    533533    } 
    534534    p_input->stream.p_selected_program = p_input->stream.pp_programs[0]; 
    535     p_input->stream.p_new_program = p_input->stream.pp_programs[0] ; 
    536535    p_input->stream.i_mux_rate = p_avi_demux->avih.i_maxbytespersec / 50; 
    537536    vlc_mutex_unlock( &p_input->stream.stream_lock );  
  • plugins/ffmpeg/ffmpeg.c

    r71ec135 rb9e9cb4  
    33 ***************************************************************************** 
    44 * Copyright (C) 1999-2001 VideoLAN 
    5  * $Id: ffmpeg.c,v 1.12 2002/06/01 18:04:48 sam Exp $ 
     5 * $Id: ffmpeg.c,v 1.13 2002/06/07 14:30:40 sam Exp $ 
    66 * 
    77 * Authors: Laurent Aimar <fenrir@via.ecp.fr> 
     
    376376    } 
    377377 
    378     /* create vout */ 
    379     p_vdec->p_vout = vout_CreateThread( p_vdec->p_fifo, 
    380                                 p_vdec->format.i_width, 
    381                                 p_vdec->format.i_height, 
    382                                 FOURCC_I420, 
    383                                 VOUT_ASPECT_FACTOR * p_vdec->format.i_width / 
    384                                     p_vdec->format.i_height ); 
    385  
     378    /* Spawn a video output if there is none. First we look for our children, 
     379     * then we look for any other vout that might be available. */ 
     380    p_vdec->p_vout = vlc_object_find( p_vdec->p_fifo, VLC_OBJECT_VOUT, 
     381                                                      FIND_CHILD ); 
    386382    if( p_vdec->p_vout == NULL ) 
    387383    { 
    388         msg_Err( p_vdec->p_fifo, "cannot open vout, aborting" ); 
    389         avcodec_close( p_vdec->p_context ); 
    390         msg_Dbg( p_vdec->p_fifo, "ffmpeg codec (%s) stopped", 
    391                                  p_vdec->psz_namecodec ); 
    392         return -1; 
    393     } 
    394  
    395     vlc_object_yield( p_vdec->p_vout ); 
     384        p_vdec->p_vout = vlc_object_find( p_vdec->p_fifo, VLC_OBJECT_VOUT, 
     385                                                          FIND_ANYWHERE ); 
     386    } 
     387 
     388    if( p_vdec->p_vout ) 
     389    { 
     390        if( p_vdec->p_vout->render.i_width != p_vdec->format.i_width 
     391             || p_vdec->p_vout->render.i_height != p_vdec->format.i_height 
     392             || p_vdec->p_vout->render.i_chroma != FOURCC_I420 
     393             || p_vdec->p_vout->render.i_aspect != VOUT_ASPECT_FACTOR 
     394                           * p_vdec->format.i_width / p_vdec->format.i_height ) 
     395        { 
     396            /* We are not interested in this format, close this vout */ 
     397            vlc_object_detach_all( p_vdec->p_vout ); 
     398            vlc_object_release( p_vdec->p_vout ); 
     399            vout_DestroyThread( p_vdec->p_vout ); 
     400            p_vdec->p_vout = NULL; 
     401        } 
     402        else 
     403        { 
     404            /* This video output is cool! Hijack it. */ 
     405            vlc_object_detach_all( p_vdec->p_vout ); 
     406            vlc_object_attach( p_vdec->p_vout, p_vdec->p_fifo ); 
     407            vlc_object_release( p_vdec->p_vout ); 
     408        } 
     409    } 
     410 
     411    if( p_vdec->p_vout == NULL ) 
     412    { 
     413        msg_Dbg( p_vdec->p_fifo, "no vout present, spawning one" ); 
     414     
     415        p_vdec->p_vout = vout_CreateThread( p_vdec->p_fifo, 
     416                           p_vdec->format.i_width, 
     417                           p_vdec->format.i_height, 
     418                           FOURCC_I420, 
     419                           VOUT_ASPECT_FACTOR * p_vdec->format.i_width / 
     420                               p_vdec->format.i_height ); 
     421     
     422        /* Everything failed */ 
     423        if( p_vdec->p_vout == NULL ) 
     424        { 
     425            msg_Err( p_vdec->p_fifo, "cannot open vout, aborting" ); 
     426            avcodec_close( p_vdec->p_context ); 
     427            p_vdec->p_fifo->b_error = 1;  
     428            return -1; 
     429        } 
     430    } 
    396431 
    397432    return( 0 ); 
     
    419454    } 
    420455 
    421     vlc_object_release( p_vdec->p_vout ); 
    422     vout_DestroyThread( p_vdec->p_vout ); 
     456    if( p_vdec->p_vout != NULL ) 
     457    { 
     458        /* We are about to die. Reattach video output to p_vlc. */ 
     459        vlc_object_detach( p_vdec->p_vout, p_vdec->p_fifo ); 
     460        vlc_object_attach( p_vdec->p_vout, p_vdec->p_fifo->p_vlc ); 
     461    } 
    423462     
    424463    free( p_vdec ); 
  • plugins/gtk/gnome.c

    r211d6ba rb9e9cb4  
    33 ***************************************************************************** 
    44 * Copyright (C) 2000 VideoLAN 
    5  * $Id: gnome.c,v 1.26 2002/06/02 09:03:54 sam Exp $ 
     5 * $Id: gnome.c,v 1.27 2002/06/07 14:30:40 sam Exp $ 
    66 * 
    77 * Authors: Samuel Hocevar <sam@zoy.org> 
     
    181181static void intf_Close( intf_thread_t *p_intf ) 
    182182{ 
     183    if( p_intf->p_sys->p_input ) 
     184    { 
     185        vlc_object_release( p_intf->p_sys->p_input ); 
     186    } 
     187 
    183188    msg_Unsubscribe( p_intf, p_intf->p_sys->p_sub ); 
    184189 
     
    223228    p_intf->p_sys->p_window = create_intf_window( ); 
    224229    p_intf->p_sys->p_popup = create_intf_popup( ); 
    225     p_intf->p_sys->p_playlist = create_intf_playlist(); 
     230    p_intf->p_sys->p_playwin = create_intf_playlist(); 
    226231    p_intf->p_sys->p_messages = create_intf_messages(); 
    227232 
     
    236241    /* Accept file drops on the playlist window */ 
    237242    gtk_drag_dest_set( GTK_WIDGET( gtk_object_get_data( GTK_OBJECT( 
    238                             p_intf->p_sys->p_playlist ), "playlist_clist") ), 
     243                            p_intf->p_sys->p_playwin ), "playlist_clist") ), 
    239244                       GTK_DEST_DEFAULT_ALL, target_table, 
    240245                       1, GDK_ACTION_COPY ); 
     
    299304                         "p_intf", p_intf ); 
    300305 
    301     gtk_object_set_data( GTK_OBJECT( p_intf->p_sys->p_playlist ), 
     306    gtk_object_set_data( GTK_OBJECT( p_intf->p_sys->p_playwin ), 
    302307                         "p_intf", p_intf ); 
    303308 
  • plugins/gtk/gnome.glade

    re9de293 rb9e9cb4  
    9393          <signal> 
    9494        <name>activate</name> 
    95         <handler>GnomeMenubarFileOpenActivate</handler> 
     95        <handler>GtkFileOpenShow_GLADE_SUX_intf_window</handler> 
    9696        <last_modification_time>Sat, 19 May 2001 16:27:02 GMT</last_modification_time> 
    9797          </signal> 
     
    107107          <signal> 
    108108        <name>activate</name> 
    109         <handler>GnomeMenubarDiscOpenActivate</handler> 
     109        <handler>GtkDiscOpenShow_GLADE_SUX_intf_window</handler> 
    110110        <last_modification_time>Sat, 19 May 2001 16:27:10 GMT</last_modification_time> 
    111111          </signal> 
     
    121121          <signal> 
    122122        <name>activate</name> 
    123         <handler>GnomeMenubarNetworkOpenActivate</handler> 
     123        <handler>GtkNetworkOpenShow_GLADE_SUX_intf_window</handler> 
    124124        <last_modification_time>Fri, 21 Dec 2001 13:11:28 GMT</last_modification_time> 
    125125          </signal> 
     
    141141          <signal> 
    142142        <name>activate</name> 
    143         <handler>GnomeMenubarDiscEjectActivate</handler> 
     143        <handler>GtkDiscEject_GLADE_SUX_intf_window</handler> 
    144144        <last_modification_time>Fri, 21 Dec 2001 13:11:28 GMT</last_modification_time> 
    145145          </signal> 
     
    160160          <signal> 
    161161        <name>activate</name> 
    162         <handler>GnomeMenubarExitActivate</handler> 
     162        <handler>GtkExit_GLADE_SUX_intf_window</handler> 
    163163        <last_modification_time>Sat, 19 May 2001 16:27:52 GMT</last_modification_time> 
    164164          </signal> 
     
    182182          <signal> 
    183183        <name>activate</name> 
    184         <handler>GnomeMenubarWindowToggleActivate</handler> 
     184        <handler>GtkWindowToggle_GLADE_SUX_intf_window</handler> 
    185185        <last_modification_time>Sat, 19 May 2001 16:28:06 GMT</last_modification_time> 
    186186          </signal> 
     
    194194          <signal> 
    195195        <name>activate</name> 
    196         <handler>GnomeMenubarFullscreenActivate</handler> 
     196        <handler>GtkFullscreen_GLADE_SUX_intf_window</handler> 
    197197        <last_modification_time>Sat, 19 May 2001 16:28:15 GMT</last_modification_time> 
    198198          </signal> 
     
    246246          <signal> 
    247247        <name>activate</name> 
    248         <handler>GnomeMenubarPlaylistActivate</handler> 
     248        <handler>GtkPlaylistShow_GLADE_SUX_intf_window</handler> 
    249249        <last_modification_time>Sat, 19 May 2001 16:28:41 GMT</last_modification_time> 
    250250          </signal> 
     
    261261          <signal> 
    262262        <name>activate</name> 
    263         <handler>GnomeMenubarModulesActivate</handler> 
     263        <handler>GtkModulesShow_GLADE_SUX_intf_window</handler> 
    264264        <last_modification_time>Sat, 19 May 2001 16:28:53 GMT</last_modification_time> 
    265265          </signal> 
     
    275275          <signal> 
    276276        <name>activate</name> 
    277         <handler>GnomeMenubarMessagesActivate</handler> 
     277        <handler>GtkMessagesShow_GLADE_SUX_intf_window</handler> 
    278278        <last_modification_time>Wed, 20 Feb 2002 05:43:55 GMT</last_modification_time> 
    279279          </signal> 
     
    322322          <signal> 
    323323        <name>activate</name> 
    324         <handler>GnomeMenubarPreferencesActivate</handler> 
     324        <handler>GtkPreferencesShow_GLADE_SUX_intf_window</handler> 
    325325        <last_modification_time>Sat, 19 May 2001 16:29:03 GMT</last_modification_time> 
    326326          </signal> 
     
    344344          <signal> 
    345345        <name>activate</name> 
    346         <handler>GnomeMenubarAboutActivate</handler> 
     346        <handler>GtkAboutShow_GLADE_SUX_intf_window</handler> 
    347347        <last_modification_time>Sat, 19 May 2001 16:29:19 GMT</last_modification_time> 
    348348          </signal> 
     
    385385      <tooltip>Open a File</tooltip> 
    386386      <signal> 
    387         <name>button_press_event</name> 
     387        <name>clicked</name> 
    388388        <handler>GtkFileOpenShow</handler> 
    389389        <data>&quot;intf_window&quot;</data> 
     
    400400      <tooltip>Open a DVD or VCD</tooltip> 
    401401      <signal> 
    402         <name>button_press_event</name> 
     402        <name>clicked</name> 
    403403        <handler>GtkDiscOpenShow</handler> 
    404404        <data>&quot;intf_window&quot;</data> 
     
    415415      <tooltip>Select a Network Stream</tooltip> 
    416416      <signal> 
    417         <name>button_press_event</name> 
     417        <name>clicked</name> 
    418418        <handler>GtkNetworkOpenShow</handler> 
    419419        <data>&quot;intf_window&quot;</data> 
     
    430430      <tooltip>Open a Satellite Card</tooltip> 
    431431      <signal> 
    432         <name>button_press_event</name> 
     432        <name>clicked</name> 
    433433        <handler>GtkSatOpenShow</handler> 
    434434        <data>&quot;intf_window&quot;</data> 
     
    446446      <tooltip>Go Backward</tooltip> 
    447447      <signal> 
    448         <name>button_press_event</name> 
     448        <name>clicked</name> 
    449449        <handler>GtkControlBack</handler> 
    450450        <data>&quot;intf_window&quot;</data> 
     
    464464      <tooltip>Stop Stream</tooltip> 
    465465      <signal> 
    466         <name>button_press_event</name> 
     466        <name>clicked</name> 
    467467        <handler>GtkControlStop</handler> 
    468468        <data>&quot;intf_window&quot;</data> 
     
    479479      <tooltip>Eject disc</tooltip> 
    480480      <signal> 
    481         <name>button_press_event</name> 
     481        <name>clicked</name> 
    482482        <handler>GtkDiscEject</handler> 
    483483        <data>&quot;intf_window&quot;</data> 
     
    494494      <tooltip>Play Stream</tooltip> 
    495495      <signal> 
    496         <name>button_press_event</name> 
     496        <name>clicked</name> 
    497497        <handler>GtkControlPlay</handler> 
    498498        <data>&quot;intf_window&quot;</data> 
    499         <last_modification_time>Sat, 19 May 2001 03:14:17 GMT</last_modification_time> 
     499        <last_modification_time>Wed, 05 Jun 2002 15:10:19 GMT</last_modification_time> 
    500500      </signal> 
    501501      <label>Play</label> 
     
    510510      <tooltip>Pause Stream</tooltip> 
    511511      <signal> 
    512         <name>button_press_event</name> 
     512        <name>clicked</name> 
    513513        <handler>GtkControlPause</handler> 
    514514        <data>&quot;intf_window&quot;</data> 
     
    526526      <tooltip>Play Slower</tooltip> 
    527527      <signal> 
    528         <name>button_press_event</name> 
     528        <name>clicked</name> 
    529529        <handler>GtkControlSlow</handler> 
    530530        <data>&quot;intf_window&quot;</data> 
     
    545545      <tooltip>Play Faster</tooltip> 
    546546      <signal> 
    547         <name>button_press_event</name> 
     547        <name>clicked</name> 
    548548        <handler>GtkControlFast</handler> 
    549549        <data>&quot;intf_window&quot;</data> 
     
    560560      <tooltip>Open Playlist</tooltip> 
    561561      <signal> 
    562         <name>button_press_event</name> 
     562        <name>clicked</name> 
    563563        <handler>GtkPlaylistShow</handler> 
    564564        <data>&quot;intf_window&quot;</data> 
     
    575575      <tooltip>Previous File</tooltip> 
    576576      <signal> 
    577         <name>button_press_event</name> 
     577        <name>clicked</name> 
    578578        <handler>GtkPlaylistPrev</handler> 
    579579        <data>&quot;intf_window&quot;</data> 
     
    590590      <tooltip>Next File</tooltip> 
    591591      <signal> 
    592         <name>button_press_event</name> 
     592        <name>clicked</name> 
    593593        <handler>GtkPlaylistNext</handler> 
    594594        <data>&quot;intf_window&quot;</data> 
     
    10221022    <signal> 
    10231023      <name>activate</name> 
    1024       <handler>GnomePopupPlayActivate</handler> 
     1024      <handler>GtkControlPlay_GLADE_SUX_intf_popup</handler> 
    10251025      <data>&quot;intf_popup&quot;</data> 
    10261026      <last_modification_time>Sat, 19 May 2001 16:16:58 GMT</last_modification_time> 
     
    10361036    <signal> 
    10371037      <name>activate</name> 
    1038       <handler>GnomePopupPauseActivate</handler> 
     1038      <handler>GtkControlPause_GLADE_SUX_intf_popup</handler> 
    10391039      <data>&quot;intf_popup&quot;</data> 
    10401040      <last_modification_time>Sat, 19 May 2001 16:17:31 GMT</last_modification_time> 
     
    10501050    <signal> 
    10511051      <name>activate</name> 
    1052       <handler>GnomePopupStopActivate</handler> 
     1052      <handler>GtkControlStop_GLADE_SUX_intf_popup</handler> 
    10531053      <data>&quot;intf_popup&quot;</data> 
    10541054      <last_modification_time>Sat, 19 May 2001 16:18:10 GMT</last_modification_time> 
     
    10651065    <signal> 
    10661066      <name>activate</name> 
    1067       <handler>GnomePopupBackActivate</handler> 
     1067      <handler>GtkControlBack_GLADE_SUX_intf_popup</handler> 
    10681068      <data>&quot;intf_popup&quot;</data> 
    10691069      <last_modification_time>Sat, 19 May 2001 16:18:21 GMT</last_modification_time> 
     
    10791079    <signal> 
    10801080      <name>activate</name> 
    1081       <handler>GnomePopupSlowActivate</handler> 
     1081      <handler>GtkControlSlow_GLADE_SUX_intf_popup</handler> 
    10821082      <data>&quot;intf_popup&quot;</data> 
    10831083      <last_modification_time>Sat, 19 May 2001 16:18:29 GMT</last_modification_time> 
     
    10931093    <signal> 
    10941094      <name>activate</name> 
    1095       <handler>GnomePopupFastActivate</handler> 
     1095      <handler>GtkControlFast_GLADE_SUX_intf_popup</handler> 
    10961096      <data>&quot;intf_popup&quot;</data> 
    10971097      <last_modification_time>Sat, 19 May 2001 16:18:37 GMT</last_modification_time> 
     
    11131113    <signal> 
    11141114      <name>activate</name> 
    1115       <handler>GnomePopupWindowToggleActivate</handler> 
     1115      <handler>GtkWindowToggle_GLADE_SUX_intf_popup</handler> 
    11161116      <data>&quot;intf_popup&quot;</data> 
    11171117      <last_modification_time>Sat, 19 May 2001 16:18:51 GMT</last_modification_time> 
     
    11271127    <signal> 
    11281128      <name>activate</name> 
    1129       <handler>GnomePopupFullscreenActivate</handler> 
     1129      <handler>GtkFullscreen_GLADE_SUX_intf_popup</handler> 
    11301130      <data>&quot;intf_popup&quot;</data> 
    11311131      <last_modification_time>Sat, 19 May 2001 16:19:07 GMT</last_modification_time> 
     
    11461146    <signal> 
    11471147      <name>activate</name> 
    1148       <handler>GnomePopupNextActivate</handler> 
     1148      <handler>GtkPlaylistNext_GLADE_SUX_intf_popup</handler> 
    11491149      <data>&quot;intf_popup&quot;</data> 
    11501150      <last_modification_time>Sat, 19 May 2001 16:19:18 GMT</last_modification_time> 
     
    11591159    <signal> 
    11601160      <name>activate</name> 
    1161       <handler>GnomePopupPrevActivate</handler> 
     1161      <handler>GtkPlaylistPrev_GLADE_SUX_intf_popup</handler> 
    11621162      <data>&quot;intf_popup&quot;</data> 
    11631163      <last_modification_time>Sat, 19 May 2001 16:19:26 GMT</last_modification_time> 
     
    11731173    <signal> 
    11741174      <name>activate</name> 
    1175       <handler>GnomePopupJumpActivate</handler> 
     1175      <handler>GtkJumpShow_GLADE_SUX_intf_popup</handler> 
    11761176      <data>&quot;intf_popup&quot;</data> 
    11771177      <last_modification_time>Sat, 19 May 2001 16:34:46 GMT</last_modification_time> 
     
    12421242    <signal> 
    12431243      <name>activate</name> 
    1244       <handler>GnomePopupFileOpenActivate</handler> 
     1244      <handler>GtkFileOpenShow_GLADE_SUX_intf_popup</handler> 
    12451245      <data>&quot;intf_popup&quot;</data> 
    12461246      <last_modification_time>Sat, 19 May 2001 16:20:08 GMT</last_modification_time> 
     
    12571257    <signal> 
    12581258      <name>activate</name> 
    1259       <handler>GnomePopupDiscOpenActivate</handler> 
     1259      <handler>GtkDiscOpenShow_GLADE_SUX_intf_popup</handler> 
    12601260      <data>&quot;intf_popup&quot;</data> 
    12611261      <last_modification_time>Sat, 19 May 2001 16:20:44 GMT</last_modification_time> 
     
    12721272    <signal> 
    12731273      <name>activate</name> 
    1274       <handler>GnomePopupNetworkOpenActivate</handler> 
     1274      <handler>GtkNetworkOpenShow_GLADE_SUX_intf_popup</handler> 
    12751275      <data>&quot;intf_popup&quot;</data> 
    12761276      <last_modification_time>Sat, 19 May 2001 16:20:54 GMT</last_modification_time> 
     
    12921292    <signal> 
    12931293      <name>activate</name> 
    1294       <handler>GnomePopupAboutActivate</handler> 
     1294      <handler>GtkAboutShow_GLADE_SUX_intf_popup</handler> 
    12951295      <data>&quot;intf_popup&quot;</data> 
    12961296      <last_modification_time>Sat, 19 May 2001 16:21:02 GMT</last_modification_time> 
     
    13061306    <signal> 
    13071307      <name>activate</name> 
    1308       <handler>GnomePopupPlaylistActivate</handler> 
     1308      <handler>GtkPlaylistShow_GLADE_SUX_intf_popup</handler> 
    13091309      <data>&quot;intf_popup&quot;</data> 
    13101310      <last_modification_time>Sat, 19 May 2001 16:21:14 GMT</last_modification_time> 
     
    13191319    <signal> 
    13201320      <name>activate</name> 
    1321       <handler>GnomePopupPreferencesActivate</handler> 
     1321      <handler>GtkPreferencesShow_GLADE_SUX_intf_popup</handler> 
    13221322      <data>&quot;intf_popup&quot;</data> 
    13231323      <last_modification_time>Sat, 19 May 2001 16:21:25 GMT</last_modification_time> 
     
    13371337    <signal> 
    13381338      <name>activate</name> 
    1339       <handler>GnomePopupExitActivate</handler> 
     1339      <handler>GtkExit_GLADE_SUX_intf_popup</handler> 
    13401340      <data>&quot;intf_popup&quot;</data> 
    13411341      <last_modification_time>Sat, 19 May 2001 16:21:45 GMT</last_modification_time> 
     
    26142614        <signal> 
    26152615          <name>activate</name> 
    2616           <handler>GnomePlaylistDiscOpenActivate</handler> 
     2616          <handler>GtkDiscOpenShow_GLADE_SUX_intf_playlist</handler> 
    26172617          <data>&quot;intf_playlist&quot;</data> 
    26182618          <last_modification_time>Sat, 19 May 2001 16:22:26 GMT</last_modification_time> 
     
    26272627        <signal> 
    26282628          <name>activate</name> 
    2629           <handler>GnomePlaylistFileOpenActivate</handler> 
     2629          <handler>GtkFileOpenShow_GLADE_SUX_intf_playlist</handler> 
    26302630          <data>&quot;intf_playlist&quot;</data> 
    26312631          <last_modification_time>Sat, 19 May 2001 16:22:37 GMT</last_modification_time> 
     
    26402640        <signal> 
    26412641          <name>activate</name> 
    2642           <handler>GnomePlaylistNetworkOpenActivate</handler> 
     2642          <handler>GtkNetworkOpenShow_GLADE_SUX_intf_playlist</handler> 
    26432643          <data>&quot;intf_playlist&quot;</data> 
    26442644          <last_modification_time>Sat, 19 May 2001 16:22:52 GMT</last_modification_time> 
  • plugins/gtk/gnome_callbacks.c

    re9de293 rb9e9cb4  
    33 ***************************************************************************** 
    44 * Copyright (C) 2000, 2001, 2002 VideoLAN 
    5  * $Id: gnome_callbacks.c,v 1.11 2002/06/04 20:33:25 sam Exp $ 
     5 * $Id: gnome_callbacks.c,v 1.12 2002/06/07 14:30:40 sam Exp $ 
    66 * 
    77 * Authors: Samuel Hocevar <sam@zoy.org> 
     
    2424 
    2525/***************************************************************************** 
    26  * Preamble 
     26 * This file is not needed: everything is in gtk_callbacks.c 
    2727 *****************************************************************************/ 
    28 #include <vlc/vlc.h> 
    29 #include <vlc/intf.h> 
    30  
    31 #include "gnome_callbacks.h" 
    32 #include "gnome_interface.h" 
    33 #include "gnome_support.h" 
    34  
    35 #include <gnome.h> 
    36  
    37 /* 
    38  * These wrappers are made necessary by a bug in glade that seems not 
    39  * to put user_data in c source of menuitems. 
    40  */ 
    41  
    42 void 
    43 GnomeMenubarFileOpenActivate           (GtkMenuItem     *menuitem, 
    44                                         gpointer         user_data) 
    45 { 
    46     GtkFileOpenShow( GTK_WIDGET( menuitem ), NULL, "intf_window" ); 
    47 } 
    48  
    49  
    50 void 
    51 GnomeMenubarDiscOpenActivate           (GtkMenuItem     *menuitem, 
    52                                         gpointer         user_data) 
    53 { 
    54     GtkDiscOpenShow( GTK_WIDGET( menuitem ), NULL, "intf_window" ); 
    55 } 
    56  
    57  
    58 void 
    59 GnomeMenubarNetworkOpenActivate         (GtkMenuItem     *menuitem, 
    60                                         gpointer         user_data) 
    61 { 
    62     GtkNetworkOpenShow( GTK_WIDGET( menuitem ), NULL, "intf_window" ); 
    63 } 
    64  
    65 void 
    66 GnomeMenubarDiscEjectActivate           (GtkMenuItem     *menuitem, 
    67                                         gpointer         user_data) 
    68 { 
    69      GtkDiscEject( GTK_WIDGET( menuitem ), NULL, "intf_window" ); 
    70 } 
    71  
    72 void 
    73 GnomeMenubarExitActivate               (GtkMenuItem     *menuitem, 
    74                                         gpointer         user_data) 
    75 { 
    76     GtkExit( GTK_WIDGET( menuitem ), NULL, "intf_window" ); 
    77 } 
    78  
    79  
    80 void 
    81 GnomeMenubarWindowToggleActivate       (GtkMenuItem     *menuitem, 
    82                                         gpointer         user_data) 
    83 { 
    84     GtkWindowToggle( GTK_WIDGET( menuitem ), NULL, "intf_window" ); 
    85 } 
    86  
    87  
    88 void 
    89 GnomeMenubarFullscreenActivate         (GtkMenuItem     *menuitem, 
    90                                         gpointer         user_data) 
    91 { 
    92     GtkFullscreen( GTK_WIDGET( menuitem ), NULL, "intf_window" ); 
    93 } 
    94  
    95  
    96 void 
    97 GnomeMenubarPlaylistActivate           (GtkMenuItem     *menuitem, 
    98                                         gpointer         user_data) 
    99 { 
    100     GtkPlaylistShow( GTK_WIDGET( menuitem ), NULL, "intf_window" ); 
    101 } 
    102  
    103  
    104 void 
    105 GnomeMenubarModulesActivate            (GtkMenuItem     *menuitem, 
    106                                         gpointer         user_data) 
    107 { 
    108     GtkModulesShow( GTK_WIDGET( menuitem ), NULL, "intf_window" ); 
    109 } 
    110  
    111  
    112 void 
    113 GnomeMenubarPreferencesActivate        (GtkMenuItem     *menuitem, 
    114                                         gpointer         user_data) 
    115 { 
    116     GtkPreferencesActivate( menuitem, "intf_window" ); 
    117 } 
    118  
    119  
    120 void 
    121 GnomeMenubarAboutActivate              (GtkMenuItem     *menuitem, 
    122                                         gpointer         user_data) 
    123 { 
    124     GtkAboutShow( GTK_WIDGET( menuitem ), NULL, "intf_window" ); 
    125 } 
    126 </