Changeset 1204fed2ec744b0d08031e1bfd2ac9420540c611
- 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
| rb5c5386 |
r1204fed |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Jean-Paul Saman <jpsaman@wxs.nl> |
|---|
| … | … | |
| 306 | 306 | /* END OF PLAYLIST GTK_TREE_VIEW */ |
|---|
| 307 | 307 | |
|---|
| | 308 | /* Hide the Preference TAB for now. */ |
|---|
| | 309 | |
|---|
| 308 | 310 | /* Show the control window */ |
|---|
| 309 | 311 | gtk_widget_show( p_intf->p_sys->p_window ); |
|---|
| r499a384 |
r1204fed |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Jean-Paul Saman <jpsaman@wxs.nl> |
|---|
| … | … | |
| 92 | 92 | intf_thread_t *p_intf = GtkGetIntf( widget ); |
|---|
| 93 | 93 | playlist_t *p_playlist; |
|---|
| 94 | | int i , i_id , i_pos; |
|---|
| | 94 | int i_id , i_pos=0; |
|---|
| 95 | 95 | GtkTreeView *p_tvplaylist = NULL; |
|---|
| 96 | 96 | |
|---|
| … | … | |
| 137 | 137 | (const char*)name, |
|---|
| 138 | 138 | PLAYLIST_APPEND, PLAYLIST_END, |
|---|
| 139 | | ppsz_options, i_pos ); |
|---|
| | 139 | (mtime_t) 0, |
|---|
| | 140 | (const char **) ppsz_options, i_pos ); |
|---|
| 140 | 141 | } |
|---|
| 141 | 142 | |
|---|
| … | … | |
| 815 | 816 | } |
|---|
| 816 | 817 | |
|---|
| | 818 | void deleteItemFromPlaylist(gpointer data, gpointer user_data) |
|---|
| | 819 | { |
|---|
| | 820 | gtk_tree_path_free((GtkTreePath*) data); // removing an item. |
|---|
| | 821 | } |
|---|
| | 822 | |
|---|
| 817 | 823 | void onDeletePlaylist(GtkButton *button, gpointer user_data) |
|---|
| 818 | 824 | { |
|---|
| … | … | |
| 862 | 868 | } |
|---|
| 863 | 869 | } |
|---|
| | 870 | #if 0 |
|---|
| 864 | 871 | 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); |
|---|
| 865 | 874 | g_list_free (p_rows); |
|---|
| 866 | 875 | } |
|---|