"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/wconfig.cc" between
worker-4.7.0.tar.bz2 and worker-4.8.0.tar.bz2

About: Worker is a file manager for the X Window System with the classical two panel interface.

wconfig.cc  (worker-4.7.0.tar.bz2):wconfig.cc  (worker-4.8.0.tar.bz2)
/* wconfig.cc /* wconfig.cc
* This file belongs to Worker, a file manager for UN*X/X11. * This file belongs to Worker, a file manager for UN*X/X11.
* Copyright (C) 2001-2020 Ralf Hoffmann. * Copyright (C) 2001-2021 Ralf Hoffmann.
* You can contact me at: ralf@boomerangsworld.de * You can contact me at: ralf@boomerangsworld.de
* or http://www.boomerangsworld.de/worker * or http://www.boomerangsworld.de/worker
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
skipping to change at line 1177 skipping to change at line 1177
twc->setRestoreTabsMode( getRestoreTabsMode() ); twc->setRestoreTabsMode( getRestoreTabsMode() );
twc->setStoreTabsMode( getStoreTabsMode() ); twc->setStoreTabsMode( getStoreTabsMode() );
twc->setTerminalReturnsEarly( getTerminalReturnsEarly() ); twc->setTerminalReturnsEarly( getTerminalReturnsEarly() );
twc->setDirectoryPresets( getDirectoryPresets() ); twc->setDirectoryPresets( getDirectoryPresets() );
twc->setInitialCommand( m_initial_command ); twc->setInitialCommand( m_initial_command );
twc->setDisableBGCheckPrefix( getDisableBGCheckPrefix() );
return twc; return twc;
} }
void WConfig::setColors(List *ncolors) void WConfig::setColors(List *ncolors)
{ {
WC_Color *tc; WC_Color *tc;
int id=colors->initEnum(); int id=colors->initEnum();
tc=(WC_Color*)colors->getFirstElement(id); tc=(WC_Color*)colors->getFirstElement(id);
while(tc!=NULL) { while(tc!=NULL) {
delete tc; delete tc;
skipping to change at line 4289 skipping to change at line 4291
if ( m_use_extended_regex ) { if ( m_use_extended_regex ) {
fh->configPutPairBool( "useextendedregex", m_use_extended_regex ); fh->configPutPairBool( "useextendedregex", m_use_extended_regex );
} }
#if 0 #if 0
if ( ! m_apply_window_dialog_type ) { if ( ! m_apply_window_dialog_type ) {
fh->configPutPairBool( "applywindowdialogtype", m_apply_window_dialog_ty pe ); fh->configPutPairBool( "applywindowdialogtype", m_apply_window_dialog_ty pe );
} }
#endif #endif
if ( ! getDisableBGCheckPrefix().empty() ) {
fh->configPutPairString("disablebgcheckprefix", getDisableBGCheckPrefix(
).c_str() );
}
fh->configCloseSection();//global fh->configCloseSection();//global
fh->configOpenSection( "colors" ); fh->configOpenSection( "colors" );
fh->configOpenSection( "labelcolors" ); fh->configOpenSection( "labelcolors" );
std::map<std::string, WConfig::ColorDef::label_colors_t>::const_iterator lab el_it1; std::map<std::string, WConfig::ColorDef::label_colors_t>::const_iterator lab el_it1;
const std::map<std::string, WConfig::ColorDef::label_colors_t> &labelcolors = _color_defs.getLabelColors(); const std::map<std::string, WConfig::ColorDef::label_colors_t> &labelcolors = _color_defs.getLabelColors();
for ( label_it1 = labelcolors.begin(); for ( label_it1 = labelcolors.begin();
skipping to change at line 6759 skipping to change at line 6765
setPathJumpAllowDirs( tempconfig->getPathJumpAllowDirs() ); setPathJumpAllowDirs( tempconfig->getPathJumpAllowDirs() );
setPathJumpStoreFilesAlways( tempconfig->getPathJumpStoreFilesAlways() ); setPathJumpStoreFilesAlways( tempconfig->getPathJumpStoreFilesAlways() );
setFaceDB( tempconfig->getFaceDB() ); setFaceDB( tempconfig->getFaceDB() );
setRestoreTabsMode( tempconfig->getRestoreTabsMode() ); setRestoreTabsMode( tempconfig->getRestoreTabsMode() );
setStoreTabsMode( tempconfig->getStoreTabsMode() ); setStoreTabsMode( tempconfig->getStoreTabsMode() );
setTerminalReturnsEarly( tempconfig->getTerminalReturnsEarly() ); setTerminalReturnsEarly( tempconfig->getTerminalReturnsEarly() );
setDisableBGCheckPrefix( tempconfig->getDisableBGCheckPrefix() );
setDirectoryPresets( tempconfig->getDirectoryPresets() ); setDirectoryPresets( tempconfig->getDirectoryPresets() );
save(); save();
applyLanguage(); applyLanguage();
} else { } else {
applyColorList( getColors() ); applyColorList( getColors() );
} }
delete win; delete win;
delete button_path_hotkey_conf; delete button_path_hotkey_conf;
skipping to change at line 7685 skipping to change at line 7693
if ( str1.length() > 0 ) { if ( str1.length() > 0 ) {
sg->insertAtCursor( str1.c_str() ); sg->insertAtCursor( str1.c_str() );
} }
} }
void WConfig::setInitialCommand( const WConfigInitialCommand &cmd ) void WConfig::setInitialCommand( const WConfigInitialCommand &cmd )
{ {
m_initial_command = cmd; m_initial_command = cmd;
} }
void WConfig::setDisableBGCheckPrefix( const std::string &prefix )
{
m_disable_bg_check_prefix = prefix;
}
const std::string WConfig::getDisableBGCheckPrefix() const
{
return m_disable_bg_check_prefix;
}
 End of changes. 5 change blocks. 
1 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)