* InterfaceWindow.cpp: beos interface
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
- * $Id: InterfaceWindow.cpp,v 1.38 2003/05/17 15:20:46 titer Exp $
+ * $Id: InterfaceWindow.cpp,v 1.39 2003/05/27 13:22:45 titer Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
set_window_pos( fMessagesWindow, frame );
if (fSettings->FindRect( "settings frame", &frame ) == B_OK )
{
- /* FIXME: Preferences horizontal resizing doesn't work
- correctly now */
+ /* FIXME: Preferences resizing doesn't work correctly yet */
frame.right = frame.left + fPreferencesWindow->Frame().Width();
+ frame.bottom = frame.top + fPreferencesWindow->Frame().Height();
set_window_pos( fPreferencesWindow, frame );
}
* PreferencesWindow.cpp: beos interface
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
- * $Id: PreferencesWindow.cpp,v 1.24 2003/05/25 17:21:36 titer Exp $
+ * $Id: PreferencesWindow.cpp,v 1.25 2003/05/27 13:22:45 titer Exp $
*
* Authors: Eric Petit <titer@videolan.org>
*
#include <stdlib.h> /* atoi(), strtod() */
+#include <String.h>
+
#include <vlc/vlc.h>
#include <vlc/intf.h>
/* TODO:
- add the needed LockLooper()s
- - fix horizontal window resizing */
+ - fix window resizing */
/* We use this function to order the items of the BOutlineView */
int compare_func( const BListItem * _first, const BListItem * _second )
PreferencesWindow::PreferencesWindow( intf_thread_t * p_interface,
BRect frame, const char * name )
: BWindow( frame, name, B_FLOATING_WINDOW_LOOK, B_NORMAL_WINDOW_FEEL,
- B_NOT_ZOOMABLE | B_NOT_H_RESIZABLE ),
+ B_NOT_ZOOMABLE | B_NOT_RESIZABLE ),
fConfigScroll( NULL ),
p_intf( p_interface )
{
network_socket_t socket_desc;
char psz_network[12];
struct sockaddr_in addr;
- int ttl=15;
p_new = (sap_session_t *)malloc( sizeof ( sap_session_t ) ) ;
msg_Dbg (p_sout , "Creating SAP Socket" );
socket_desc.i_type = NETWORK_UDP;
- socket_desc.psz_bind_addr = SAP_ADDR;
- socket_desc.i_bind_port = SAP_PORT;
- socket_desc.psz_server_addr = "";
- socket_desc.i_server_port = 0;
+ socket_desc.psz_bind_addr = "";
+ socket_desc.i_bind_port = 0;
+ socket_desc.psz_server_addr = SAP_ADDR;
+ socket_desc.i_server_port = SAP_PORT;
socket_desc.i_handle = 0;
- sprintf ( psz_network,"ipv4" );
+ sprintf ( psz_network, "ipv4" );
p_sout->p_private=(void*) &socket_desc;
addr.sin_addr.s_addr = inet_addr(SAP_ADDR);
addr.sin_port = htons( SAP_PORT );
- setsockopt( p_new->socket, IPPROTO_IP, IP_MULTICAST_TTL,
- (void*)&ttl, sizeof(ttl) );
-
p_new->addr = addr;
return(p_new);