[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/workspace/ksplash/ksplashx
From:       Luboš Luňák <l.lunak () kde ! org>
Date:       2010-02-07 13:57:32
Message-ID: 1265551052.760508.19166.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1086501 by lunakl:

Check also the timestamp of Theme.rc, as nobody of course bothers
to read documentation and that file is likely to be updated when
anything in the splash updates.



 M  +1 -0      README  
 M  +6 -0      splash.cpp  


--- trunk/KDE/kdebase/workspace/ksplash/ksplashx/README #1086500:1086501
@@ -19,6 +19,7 @@
 NOTES:
 Add a comment in description.txt and update it everytime you change anything.
 Caching of the splash is done and the timestamp of description.txt is used.
+Alternatively, update at least Theme.rc.
 
 New images are alphablended (if needed) with what's in the splash window
 and then they replace what's at their position. Animations have all frames
--- trunk/KDE/kdebase/workspace/ksplash/ksplashx/splash.cpp #1086500:1086501
@@ -839,6 +839,12 @@
         exit( 2 );
         }
     timestamp = stat_buf.st_mtime;
+    // check also Theme.rc, as artists are likely to just ignore updating \
description.txt +    // when updating the theme but will touch info in Theme.rc
+    char tmp[ 1024 ];
+    snprintf( tmp, 1024, "%s/Theme.rc", theme_dir );
+    if( stat( tmp, &stat_buf ) == 0 && stat_buf.st_mtime > timestamp )
+	timestamp = stat_buf.st_mtime;
     double ratiox = double( desc_w ) / screenGeometry(0).width(); // only for \
                coordinates in the description file
     double ratioy = double( desc_h ) / screenGeometry(0).height(); // only for \
                coordinates in the description file
     XSelectInput( qt_xdisplay(), DefaultRootWindow( qt_xdisplay()), \
SubstructureNotifyMask );


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic