]> git.sesse.net Git - vlc/blobdiff - modules/gui/skins/src/dialogs.cpp
* modules/gui/skins/*: removed unused GTK2_SKINS code.
[vlc] / modules / gui / skins / src / dialogs.cpp
index f701b21826f1e746469bbc07d449d95ec165072a..346d98641d99ea549b2697b2a1c2ab963ff9a12e 100644 (file)
@@ -2,7 +2,7 @@
  * 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
@@ -79,11 +79,7 @@ class Instance: public wxApp
 {\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
@@ -91,10 +87,6 @@ public:
 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
@@ -115,20 +107,11 @@ Instance::Instance( )
 {\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
@@ -136,11 +119,6 @@ bool Instance::OnInit()
 {\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
@@ -148,11 +126,6 @@ bool Instance::OnInit()
     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