Changeset 1204fed2ec744b0d08031e1bfd2ac9420540c611

Show
Ignore:
Timestamp:
10/02/04 21:28:37 (5 years ago)
Author:
Jean-Paul Saman <jpsaman@videolan.org>
git-committer:
Jean-Paul Saman <jpsaman@videolan.org> 1076444917 +0000
git-parent:

[08c1cc548ab6c504c0aee0415e7d7849b86263bb]

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

Missed the deadline again ;-(

- Fixed the playlist_AddExt() call
- Fixed a compiler warning

Files:

Legend:

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

    rb5c5386 r1204fed  
    33 ***************************************************************************** 
    44 * Copyright (C) 2002 VideoLAN 
    5  * $Id: pda.c,v 1.19 2004/01/25 18:53:07 gbazin Exp $ 
     5 * $Id: pda.c,v 1.20 2004/02/10 20:28:37 jpsaman Exp $ 
    66 * 
    77 * Authors: Jean-Paul Saman <jpsaman@wxs.nl> 
     
    306306    /* END OF PLAYLIST GTK_TREE_VIEW */ 
    307307 
     308    /* Hide the Preference TAB for now. */ 
     309 
    308310    /* Show the control window */ 
    309311    gtk_widget_show( p_intf->p_sys->p_window ); 
  • modules/gui/pda/pda_callbacks.c

    r499a384 r1204fed  
    33 ***************************************************************************** 
    44 * Copyright (C) 2000, 2001 VideoLAN 
    5  * $Id: pda_callbacks.c,v 1.26 2004/01/29 17:51:07 zorglub Exp $ 
     5 * $Id: pda_callbacks.c,v 1.27 2004/02/10 20:28:37 jpsaman Exp $ 
    66 * 
    77 * Authors: Jean-Paul Saman <jpsaman@wxs.nl> 
     
    9292    intf_thread_t *p_intf = GtkGetIntf( widget ); 
    9393    playlist_t    *p_playlist; 
    94     int           i , i_id , i_pos
     94    int           i_id , i_pos=0
    9595    GtkTreeView   *p_tvplaylist = NULL; 
    9696 
     
    137137                              (const char*)name, 
    138138                              PLAYLIST_APPEND, PLAYLIST_END, 
    139                               ppsz_options, i_pos ); 
     139                              (mtime_t) 0, 
     140                              (const char **) ppsz_options, i_pos ); 
    140141            } 
    141142 
     
    815816} 
    816817 
     818void deleteItemFromPlaylist(gpointer data, gpointer user_data) 
     819{ 
     820    gtk_tree_path_free((GtkTreePath*) data); // removing an item. 
     821} 
     822 
    817823void onDeletePlaylist(GtkButton *button, gpointer user_data) 
    818824{ 
     
    862868                } 
    863869            } 
     870#if 0  
    864871            g_list_foreach (p_rows, (GFunc*)gtk_tree_path_free, NULL); 
     872#endif /* Testing the next line */ 
     873            g_list_foreach (p_rows, (GFunc*)deleteItemFromPlaylist, NULL); 
    865874            g_list_free (p_rows); 
    866875        }