]> git.sesse.net Git - vlc/commitdiff
skins2: update to latest change in core
authorErwan Tulou <erwan10@videolan.org>
Tue, 9 Feb 2010 09:58:27 +0000 (10:58 +0100)
committerErwan Tulou <erwan10@videolan.org>
Tue, 9 Feb 2010 10:52:05 +0000 (11:52 +0100)
 - remove pf_run no longer in use
 - attach object as soon as possible to benefit var heritage

modules/gui/skins2/src/dialogs.cpp

index 611468aa0144ffc9cf7725c368c4a6d1e0afa9af..304172bcdcfdc1736480a20b99709fa30b1fce82 100644 (file)
@@ -158,6 +158,9 @@ bool Dialogs::init()
     if( m_pProvider == NULL )
         return false;
 
+    // Attach the dialogs provider to its parent interface
+    vlc_object_attach( m_pProvider, getIntf() );
+
     m_pModule = module_need( m_pProvider, "dialogs provider", NULL, false );
     if( m_pModule == NULL )
     {
@@ -167,16 +170,6 @@ bool Dialogs::init()
         return false;
     }
 
-    // Attach the dialogs provider to its parent interface
-    vlc_object_attach( m_pProvider, getIntf() );
-
-    // Initialize dialogs provider
-    // (returns as soon as initialization is done)
-    if( m_pProvider->pf_run )
-    {
-        m_pProvider->pf_run( m_pProvider );
-    }
-
     /* Register callback for the intf-popupmenu variable */
     var_AddCallback( getIntf()->p_libvlc, "intf-popupmenu",
                      PopupMenuCB, this );