]> git.sesse.net Git - vlc/commitdiff
Win32: hopefully improve the fontconfig cache display
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 15 Jun 2010 23:56:44 +0000 (01:56 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 15 Jun 2010 23:56:44 +0000 (01:56 +0200)
modules/gui/qt4/dialogs/external.cpp
modules/misc/freetype.c

index 9e86da874f443ebf11d17d08b83f966064ebddd2..e9e20eb037a73eabd2e1b248474d0ba80fbd38c8 100644 (file)
@@ -194,6 +194,7 @@ QVLCProgressDialog::QVLCProgressDialog (DialogHandler *parent,
         setCancelButton( new QPushButton( "&" + qfu(data->cancel) ) );
     if (data->title != NULL)
         setWindowTitle (qfu(data->title));
+
     setWindowRole ("vlc-progress");
     setMinimumDuration (300);
     setValue( 0 );
@@ -247,6 +248,7 @@ void DialogHandler::startProgressBar (vlc_object_t *, void *value)
     dialog_progress_bar_t *data = (dialog_progress_bar_t *)value;
     QWidget *dlg = new QVLCProgressDialog (this, data);
 
+    QTimer::singleShot( 300, dlg, SLOT( show() ) );
 //    dlg->show ();
 }
 
index 7ea939e1312294194e9de020077f4132ab17cb36..d267a0d2239ed8ab0c2894590de0aaa3ba2c201e 100644 (file)
@@ -358,8 +358,8 @@ static int Create( vlc_object_t *p_this )
             _("Please wait while your font cache is rebuilt.\n"
                 "This should take less than a few minutes."), NULL );
 
-    if( p_dialog )
-        dialog_ProgressSet( p_dialog, NULL, 0.5 );
+/*    if( p_dialog )
+        dialog_ProgressSet( p_dialog, NULL, 0.5 ); */
 
     FcConfigBuildFonts( fcConfig );
     t2 = mdate();
@@ -367,7 +367,7 @@ static int Create( vlc_object_t *p_this )
 
     if( p_dialog )
     {
-        dialog_ProgressSet( p_dialog, NULL, 1.0 );
+//        dialog_ProgressSet( p_dialog, NULL, 1.0 );
         dialog_ProgressDestroy( p_dialog );
         p_dialog = NULL;
     }