* dialogs.cpp: Handles all the different dialog boxes we provide.\r
*****************************************************************************\r
* Copyright (C) 2003 VideoLAN\r
- * $Id: dialogs.cpp,v 1.8 2003/06/28 13:04:52 sam Exp $\r
+ * $Id: dialogs.cpp,v 1.9 2003/07/13 14:55:17 gbazin Exp $\r
*\r
* Authors: Gildas Bazin <gbazin@netcourrier.com>\r
*\r
{\r
public:\r
Instance();\r
-#ifdef GTK2_SKINS\r
- Instance( intf_thread_t *_p_intf, CallBackObjects *callback );\r
-#else\r
Instance( intf_thread_t *_p_intf );\r
-#endif\r
\r
bool OnInit();\r
int OnExit();\r
private:\r
intf_thread_t *p_intf;\r
\r
-#ifdef GTK2_SKINS\r
- CallBackObjects *callbackobj;\r
-#endif\r
-\r
DECLARE_EVENT_TABLE();\r
};\r
\r
{\r
}\r
\r
-#ifdef GTK2_SKINS\r
-Instance::Instance( intf_thread_t *_p_intf, CallBackObjects *callback )\r
-{\r
- // Initialization\r
- p_intf = _p_intf;\r
- callbackobj = callback;\r
-}\r
-#else\r
Instance::Instance( intf_thread_t *_p_intf )\r
{\r
// Initialization\r
p_intf = _p_intf;\r
}\r
-#endif\r
\r
IMPLEMENT_APP_NO_MAIN(Instance)\r
\r
{\r
p_intf->p_sys->p_icon = new wxIcon( vlc_xpm );\r
\r
-#ifdef GTK2_SKINS\r
- // Set event callback. Yes, it's a big hack ;)\r
- gdk_event_handler_set( GTK2Proc, (gpointer)callbackobj, NULL );\r
-#endif\r
-\r
// Create all the dialog boxes\r
p_intf->p_sys->p_dialogs->OpenDlg =\r
new OpenDialog( p_intf, NULL, FILE_ACCESS );\r
p_intf->p_sys->p_dialogs->PrefsDlg = new PrefsDialog( p_intf, NULL );\r
p_intf->p_sys->p_dialogs->FileInfoDlg = new FileInfo( p_intf, NULL );\r
\r
-#ifdef GTK2_SKINS\r
- // Add timer\r
- g_timeout_add( 200, (GSourceFunc)RefreshTimer, (gpointer)p_intf );\r
-#endif\r
-\r
// OK, initialization is over, now the other thread can go on working...\r
vlc_thread_ready( p_intf->p_sys->p_dialogs->p_thread );\r
\r