Now the "Show EXIF info" in the editor remember its state, and propagate to the other editor tabs

This commit is contained in:
Hombre 2010-10-03 16:49:04 +02:00
parent 805044a64f
commit a9fea09400
3 changed files with 6 additions and 5 deletions

View File

@ -293,6 +293,9 @@ void EditorPanel::setAspect () {
parent->get_size(winW, winH);
hpanedl->set_position(options.historyPanelWidth);
hpanedr->set_position(winW - options.toolPanelWidth);
// initialize components
if (info->get_active() != options.showInfo)
info->set_active (options.showInfo);
}
void EditorPanel::on_realize () {

View File

@ -26,7 +26,6 @@
ImageArea::ImageArea (ImageAreaPanel* p) : parent(p) {
showInfo = false;
infotext = "";
cropgl = NULL;
pmlistener = NULL;
@ -121,8 +120,8 @@ void ImageArea::setInfoText (Glib::ustring text) {
void ImageArea::infoEnabled (bool e) {
if (showInfo!=e) {
showInfo = e;
if (options.showInfo!=e) {
options.showInfo = e;
queue_draw ();
}
}
@ -148,7 +147,7 @@ bool ImageArea::on_expose_event(GdkEventExpose* event) {
if (mainCropWindow)
mainCropWindow->expose (cr);
if (showInfo==true && infotext!="") {
if (options.showInfo==true && infotext!="") {
int fnw, fnh;
ilayout->get_pixel_size (fnw, fnh);
window->draw_pixbuf (get_style()->get_base_gc (Gtk::STATE_NORMAL), ipixbuf, 0, 0, 4, 4, fnw+8, fnh+8, Gdk::RGB_DITHER_NONE, 0, 0);

View File

@ -37,7 +37,6 @@ class ImageArea : public Gtk::DrawingArea, public CropWindowListener {
protected:
bool showInfo;
Glib::ustring infotext;
Glib::RefPtr<Pango::Layout> ilayout;
Glib::RefPtr<Pango::Layout> deglayout;