[vlc-commits] commit: Win32: hopefully improve the fontconfig cache display ( Jean-Baptiste Kempf )

git at videolan.org git at videolan.org
Wed Jun 16 01:57:03 CEST 2010


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Jun 16 01:56:44 2010 +0200| [eed5cd17bb72639923faf541cc697467786adc2f] | committer: Jean-Baptiste Kempf 

Win32: hopefully improve the fontconfig cache display

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=eed5cd17bb72639923faf541cc697467786adc2f
---

 modules/gui/qt4/dialogs/external.cpp |    2 ++
 modules/misc/freetype.c              |    6 +++---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/modules/gui/qt4/dialogs/external.cpp b/modules/gui/qt4/dialogs/external.cpp
index 9e86da8..e9e20eb 100644
--- a/modules/gui/qt4/dialogs/external.cpp
+++ b/modules/gui/qt4/dialogs/external.cpp
@@ -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 ();
 }
 
diff --git a/modules/misc/freetype.c b/modules/misc/freetype.c
index 7ea939e..d267a0d 100644
--- a/modules/misc/freetype.c
+++ b/modules/misc/freetype.c
@@ -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;
     }



More information about the vlc-commits mailing list