Save background colour of editor window.

This commit is contained in:
Steve Herrell 2010-12-03 07:44:50 -05:00
parent f52810e56b
commit 4ab93a32b4

View File

@ -51,7 +51,7 @@ ZoomStep zoomSteps[] = {{" 10%", 0.1, 10},
CropWindow::CropWindow (ImageArea* parent, rtengine::StagedImageProcessor* ipc_)
: onResizeArea(false), deleted(false), fitZoomEnabled(true), fitZoom(false),
backColor(0), decorated(true), titleHeight(30),
backColor(options.bgcolor), decorated(true), titleHeight(30),
sideBorderWidth(3), lowerBorderWidth(3), upperBorderWidth(1), sepWidth(2),
imgX(0), imgY(0), imgW(1), imgH(1), xpos(30), ypos(30), iarea(parent),
cropZoom(0), cropgl(NULL), pmlistener(NULL), observedCropWin(NULL) {
@ -234,6 +234,7 @@ void CropWindow::buttonPress (int button, int type, int bstate, int x, int y) {
}
else if (button==1 && type==GDK_2BUTTON_PRESS && onArea (CropBorder, x, y)) {
backColor = (backColor+1) % 3;
options.bgcolor = backColor;
}
else if (button==1 && type==GDK_BUTTON_PRESS && state==SNormal && onArea (CropToolBar, x, y)) {
if (!decorated || !buttonSet.pressNotify (x, y)) {