diff options
author | Tim Williams <tmw@autotrain.org> | 2011-10-14 13:51:18 +0100 |
---|---|---|
committer | Tim Williams <tmw@autotrain.org> | 2011-10-14 13:51:18 +0100 |
commit | ec2515f058c60d2478a549f58376db628ba556b9 (patch) | |
tree | aefbde1b807005611b397e01ebc5782c7d27ff91 /mandriva/2010.2/kdebase/kdebase-3.3.2-fix-kdm-theme-mdk.patch | |
parent | bba295da1161579c6fe734680c827e50a3585131 (diff) | |
download | tde-packaging-ec2515f058c60d2478a549f58376db628ba556b9.tar.gz tde-packaging-ec2515f058c60d2478a549f58376db628ba556b9.zip |
Initial commit of the Mandriva patches and spec files.
This includes the main dependencies and core packages, but very little else.
Diffstat (limited to 'mandriva/2010.2/kdebase/kdebase-3.3.2-fix-kdm-theme-mdk.patch')
-rw-r--r-- | mandriva/2010.2/kdebase/kdebase-3.3.2-fix-kdm-theme-mdk.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/mandriva/2010.2/kdebase/kdebase-3.3.2-fix-kdm-theme-mdk.patch b/mandriva/2010.2/kdebase/kdebase-3.3.2-fix-kdm-theme-mdk.patch new file mode 100644 index 000000000..08deeb032 --- /dev/null +++ b/mandriva/2010.2/kdebase/kdebase-3.3.2-fix-kdm-theme-mdk.patch @@ -0,0 +1,28 @@ +--- kdebase-3.3.2/kdm/kfrontend/themer/kdmthemer.cpp-- 2005-02-28 15:16:19.881739297 +0100 ++++ kdebase-3.3.2/kdm/kfrontend/themer/kdmthemer.cpp 2005-02-28 15:17:37.816468727 +0100 +@@ -57,11 +57,23 @@ KdmThemer::KdmThemer( const QString &_fi + + // read the XML file and create DOM tree + TQString filename = _filename; +- if (!::access( TQFile::encodeName( filename + "/GdmGreeterTheme.desktop" ), R_OK )) { ++ if ( _filename.startsWith("/usr/share/mdk/dm") ) ++ { ++ if (!::access( TQFile::encodeName( filename + "/KdmGreeterTheme.desktop" ), R_OK )) { ++ KSimpleConfig cfg( filename + "/KdmGreeterTheme.desktop" ); ++ cfg.setGroup( "GdmGreeterTheme" ); ++ filename += '/' + cfg.readEntry( "Greeter" ); ++ } ++ } ++ else ++ { ++ if (!::access( TQFile::encodeName( filename + "/GdmGreeterTheme.desktop" ), R_OK )) { + KSimpleConfig cfg( filename + "/GdmGreeterTheme.desktop" ); + cfg.setGroup( "GdmGreeterTheme" ); + filename += '/' + cfg.readEntry( "Greeter" ); +- } ++ } ++ } ++ + TQFile opmlFile( filename ); + if (!opmlFile.open( IO_ReadOnly )) { + FDialog::box( widget(), errorbox, i18n( "Cannot open theme file %1" ).arg(filename) ); |