Modifications such that the aspect ratio of the histogram is stored between sessions. Additionally, the scaling behavior is changed slightly to make the code easier without being to different from the current situation.
This commit is contained in:
@@ -851,6 +851,7 @@ EditorPanel::EditorPanel (FilePanel* filePanel)
|
||||
if (tbTopPanel_1) {
|
||||
tbTopPanel_1->signal_toggled().connect ( sigc::mem_fun (*this, &EditorPanel::tbTopPanel_1_toggled) );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
EditorPanel::~EditorPanel ()
|
||||
@@ -2341,6 +2342,7 @@ void EditorPanel::updateHistogramPosition (int oldPosition, int newPosition)
|
||||
histogramPanel->unreference();
|
||||
}
|
||||
|
||||
leftbox->set_position(options.historyPanelWidth * options.histogramAspect); // Make sure the panel gets the right aspect ratio
|
||||
histogramPanel->reorder (Gtk::POS_LEFT);
|
||||
break;
|
||||
|
||||
@@ -2360,11 +2362,13 @@ void EditorPanel::updateHistogramPosition (int oldPosition, int newPosition)
|
||||
histogramPanel->unreference();
|
||||
}
|
||||
|
||||
vboxright->set_position(options.toolPanelWidth * options.histogramAspect); // Make sure the panel gets the right aspect ratio
|
||||
histogramPanel->reorder (Gtk::POS_RIGHT);
|
||||
break;
|
||||
}
|
||||
|
||||
iareapanel->imageArea->setPointerMotionHListener (histogramPanel);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user