* info.m: MacOS X info panel
*****************************************************************************
* Copyright (C) 2003 VideoLAN
- * $Id: info.m,v 1.4 2003/03/14 01:23:06 hartman Exp $
+ * $Id: info.m,v 1.5 2003/03/18 02:28:53 hartman Exp $
*
* Authors: Derk-Jan Hartman <thedj@users.sourceforge.net>
*
- (void)updateInfo
{
+ NSString *o_selectedPane;
+
if( ![o_window isVisible] )
{
return;
}
+
+ o_selectedPane = [[o_selector selectedItem] title];
intf_thread_t * p_intf = [NSApp getIntf];
playlist_t * p_playlist = vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST,
vlc_mutex_unlock( &p_playlist->object_lock );
vlc_object_release( p_playlist );
- [o_selector selectItemAtIndex: 0];
+ int i_select = [o_selector indexOfItemWithTitle:o_selectedPane];
+ if ( i_select < 0 )
+ {
+ i_select = 0;
+ }
+ [o_selector selectItemAtIndex: i_select ];
[self showCategory: o_selector];
}
* httpd.c
*****************************************************************************
* Copyright (C) 2001-2003 VideoLAN
- * $Id: httpd.c,v 1.10 2003/03/17 23:48:26 fenrir Exp $
+ * $Id: httpd.c,v 1.11 2003/03/18 02:28:53 hartman Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
{
httpd_sys_t *p_httpt = (httpd_sys_t*)p_args;
httpd_connection_t *p_con;
- int i;
if( i_request > 0)
{