"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/XFilePackage.cpp" between
xfe-1.41.tar.gz and xfe-1.42.tar.gz

About: Xfe (X File Explorer) is a file manager and browser (using the FOX toolkit).

XFilePackage.cpp  (xfe-1.41):XFilePackage.cpp  (xfe-1.42)
skipping to change at line 405 skipping to change at line 405
return(1); return(1);
} }
// Quit application // Quit application
long XFilePackage::onCmdQuit(FXObject*, FXSelector, void*) long XFilePackage::onCmdQuit(FXObject*, FXSelector, void*)
{ {
// Save options // Save options
saveConfig(); saveConfig();
// Exit // Exit
getApp()->exit(EXIT_FAILURE); getApp()->exit(EXIT_SUCCESS);
return(1); return(1);
} }
// Update file list // Update file list
int XFilePackage::readFileList(void) int XFilePackage::readFileList(void)
{ {
FXString cmd; FXString cmd;
FXString ext = FXPath::extension(filename); FXString ext = FXPath::extension(filename);
skipping to change at line 573 skipping to change at line 573
void XFilePackage::create() void XFilePackage::create()
{ {
// Read the Xfe registry // Read the Xfe registry
FXRegistry* reg_xfe = new FXRegistry(XFEAPPNAME, ""); FXRegistry* reg_xfe = new FXRegistry(XFEAPPNAME, "");
reg_xfe->read(); reg_xfe->read();
// Set Xfp text font according to the Xfe registry // Set Xfp text font according to the Xfe registry
FXString fontspec; FXString fontspec;
fontspec = reg_xfe->readStringEntry("SETTINGS", "textfont", "Helvetica,100,n ormal,regular"); fontspec = reg_xfe->readStringEntry("SETTINGS", "textfont", DEFAULT_TEXT_FON T);
if (!fontspec.empty()) if (!fontspec.empty())
{ {
FXFont* font = new FXFont(getApp(), fontspec); FXFont* font = new FXFont(getApp(), fontspec);
font->create(); font->create();
description->setFont(font); description->setFont(font);
list->setFont(font); list->setFont(font);
} }
delete reg_xfe; delete reg_xfe;
// Get toolbar status // Get toolbar status
skipping to change at line 733 skipping to change at line 733
FXRegistry* reg_xfe; FXRegistry* reg_xfe;
reg_xfe = new FXRegistry(xfename, vdrname); reg_xfe = new FXRegistry(xfename, vdrname);
reg_xfe->read(); reg_xfe->read();
// Set base color (to change the default base color at first run) // Set base color (to change the default base color at first run)
FXColor basecolor = reg_xfe->readColorEntry("SETTINGS", "basecolor", FXRGB(2 37, 233, 227)); FXColor basecolor = reg_xfe->readColorEntry("SETTINGS", "basecolor", FXRGB(2 37, 233, 227));
application->setBaseColor(basecolor); application->setBaseColor(basecolor);
// Set Xfp normal font according to the Xfe registry // Set Xfp normal font according to the Xfe registry
FXString fontspec; FXString fontspec;
fontspec = reg_xfe->readStringEntry("SETTINGS", "font", "Helvetica,100,norma l,regular"); fontspec = reg_xfe->readStringEntry("SETTINGS", "font", DEFAULT_NORMAL_FONT) ;
if (!fontspec.empty()) if (!fontspec.empty())
{ {
FXFont* normalFont = new FXFont(application, fontspec); FXFont* normalFont = new FXFont(application, fontspec);
normalFont->create(); normalFont->create();
application->setNormalFont(normalFont); application->setNormalFont(normalFont);
} }
// Set single click navigation according to the Xfe registry // Set single click navigation according to the Xfe registry
single_click = reg_xfe->readUnsignedEntry("SETTINGS", "single_click", SINGLE _CLICK_NONE); single_click = reg_xfe->readUnsignedEntry("SETTINGS", "single_click", SINGLE _CLICK_NONE);
skipping to change at line 801 skipping to change at line 801
if (str.find("RPM") != -1) if (str.find("RPM") != -1)
{ {
rpm = true; rpm = true;
} }
// No package manager was found // No package manager was found
if ((dpkg == false) && (rpm == false)) if ((dpkg == false) && (rpm == false))
{ {
MessageBox::error(window, BOX_OK, _("Error"), _("No compatible package m anager (rpm or dpkg) found!")); MessageBox::error(window, BOX_OK, _("Error"), _("No compatible package m anager (rpm or dpkg) found!"));
exit(EXIT_SUCCESS); exit(EXIT_FAILURE);
} }
// Start // Start
window->start(startpkg); window->start(startpkg);
// Run the application // Run the application
return(application->run()); return(application->run());
} }
 End of changes. 4 change blocks. 
4 lines changed or deleted 4 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS