translate kwin's rules files
svn path=/trunk/KDE/kdebase/workspace/; revision=662888
This commit is contained in:
parent
4a48f182ae
commit
6b5e03ac7d
4 changed files with 7 additions and 5 deletions
|
@ -28,7 +28,7 @@ install(TARGETS kwin_update_default_rules DESTINATION ${LIB_INSTALL_DIR}/kconf_u
|
|||
|
||||
########### install files ###############
|
||||
|
||||
install( FILES fsp_workarounds_1 DESTINATION ${DATA_INSTALL_DIR}/kwin/default_rules )
|
||||
install( FILES fsp_workarounds_1.kwinrules DESTINATION ${DATA_INSTALL_DIR}/kwin/default_rules )
|
||||
install( FILES pop.wav DESTINATION ${SOUND_INSTALL_DIR} )
|
||||
install( FILES kwin.upd kwinsticky.upd kwiniconify.upd kwin3_plugin.upd kwin_focus1.upd kwinupdatewindowsettings.upd kwin_focus2.upd kwin_fsp_workarounds_1.upd DESTINATION ${KCONF_UPDATE_INSTALL_DIR} )
|
||||
install(PROGRAMS pluginlibFix.pl kwin3_plugin.pl kwin_focus1.sh kwin_focus2.sh DESTINATION ${KCONF_UPDATE_INSTALL_DIR} )
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[1]
|
||||
description=(Default) Disable focus stealing prevention for XV
|
||||
Description=(Default) Disable focus stealing prevention for XV
|
||||
fsplevel=0
|
||||
fsplevelrule=2
|
||||
wmclass=^xv .*
|
|
@ -4,5 +4,5 @@ Id=kde351
|
|||
File=kwinrules_update
|
||||
Group=Dummy
|
||||
Options=overwrite
|
||||
ScriptArguments=fsp_workarounds_1
|
||||
ScriptArguments=fsp_workarounds_1.kwinrules
|
||||
Script=kwin_update_default_rules
|
||||
|
|
|
@ -113,7 +113,9 @@ static int limit0to4( int i ) { return qMax( 0, qMin( 4, i )); }
|
|||
|
||||
void Rules::readFromCfg( const KConfigGroup& cfg )
|
||||
{
|
||||
description = cfg.readEntry( "description" );
|
||||
description = cfg.readEntry( "Description" );
|
||||
if( description.isEmpty()) // capitalized first, lowercase for backwards compatibility
|
||||
description = cfg.readEntry( "description" );
|
||||
READ_MATCH_STRING( wmclass, .toLower().toLatin1() );
|
||||
wmclasscomplete = cfg.readEntry( "wmclasscomplete" , false);
|
||||
READ_MATCH_STRING( windowrole, .toLower().toLatin1() );
|
||||
|
@ -204,7 +206,7 @@ void Rules::readFromCfg( const KConfigGroup& cfg )
|
|||
|
||||
void Rules::write( KConfigGroup& cfg ) const
|
||||
{
|
||||
cfg.writeEntry( "description", description );
|
||||
cfg.writeEntry( "Description", description );
|
||||
// always write wmclass
|
||||
WRITE_MATCH_STRING( wmclass, (const char*), true );
|
||||
cfg.writeEntry( "wmclasscomplete", wmclasscomplete );
|
||||
|
|
Loading…
Reference in a new issue