Rather than wait for the first call to THEMIM to instantiate this singleton,
do it explicitly at an early stage of the plugin initialization.
This is useful for Qt as a dialog provider, since otherwise THEMIM doesn't
get a chance to be set up until, e.g. the first call to a popupmenu,
which then makes this menu slightly longer and noticeable to display.
Also, remove the unneeded instantiation in the main_interface. (THEMIM has
already been used a few lines earlier, which makes the call useless).
createStatusBar();
setStatusBarVisibility( getSettings()->value( "MainWindow/status-bar-visible", false ).toBool() );
- /********************
- * Input Manager *
- ********************/
- MainInputManager::getInstance( p_intf );
-
#ifdef _WIN32
himl = NULL;
p_taskbl = NULL;
app.setWindowIcon( QIcon::fromTheme( "vlc", QIcon( ":/logo/vlc256.png" ) ) );
#endif
- /* Initialize timers and the Dialog Provider */
+ /* Initialize the Dialog Provider and the Main Input Manager */
DialogsProvider::getInstance( p_intf );
+ MainInputManager::getInstance( p_intf );
#ifdef UPDATE_CHECK
/* Checking for VLC updates */