Mercurial > mplayer.hg
comparison gui/ui/gtk/url.c @ 35350:ee265b18d653
Rename import_file_into_gui() add_to_gui_playlist().
This seems to be a more appropriate name.
Additionally, use self-explanatory enum constants instead of numeric
ones, change the parameter names and a declaration to const, check the
parameters and print the debug message only if the item will really be
added.
(For the sake of consistency, adjust the Win32 code as well.)
author | ib |
---|---|
date | Thu, 22 Nov 2012 13:57:40 +0000 |
parents | 60930e7347c6 |
children | 96cda43fe250 |
comparison
equal
deleted
inserted
replaced
35349:60930e7347c6 | 35350:ee265b18d653 |
---|---|
101 item=calloc( 1,sizeof( urlItem ) ); | 101 item=calloc( 1,sizeof( urlItem ) ); |
102 item->url=gstrdup( str ); | 102 item->url=gstrdup( str ); |
103 listMgr( URLLIST_ITEM_ADD,item ); | 103 listMgr( URLLIST_ITEM_ADD,item ); |
104 | 104 |
105 uiSetFileName( NULL,str,STREAMTYPE_STREAM ); guiInfo.NewPlay=GUI_FILE_NEW; | 105 uiSetFileName( NULL,str,STREAMTYPE_STREAM ); guiInfo.NewPlay=GUI_FILE_NEW; |
106 import_file_into_gui(str, 0); | 106 add_to_gui_playlist(str, PLAYLIST_ITEM_APPEND); |
107 uiEventHandling( evPlay,0 ); | 107 uiEventHandling( evPlay,0 ); |
108 } | 108 } |
109 } | 109 } |
110 HideURLDialogBox(); | 110 HideURLDialogBox(); |
111 } | 111 } |