diff --git a/rtgui/editorpanel.cc b/rtgui/editorpanel.cc index a514a83e5..4eba917f3 100644 --- a/rtgui/editorpanel.cc +++ b/rtgui/editorpanel.cc @@ -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 () { diff --git a/rtgui/imagearea.cc b/rtgui/imagearea.cc index c1196e9b4..7fcf536dd 100644 --- a/rtgui/imagearea.cc +++ b/rtgui/imagearea.cc @@ -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); diff --git a/rtgui/imagearea.h b/rtgui/imagearea.h index 9abe97d84..08e1386fc 100644 --- a/rtgui/imagearea.h +++ b/rtgui/imagearea.h @@ -37,7 +37,6 @@ class ImageArea : public Gtk::DrawingArea, public CropWindowListener { protected: - bool showInfo; Glib::ustring infotext; Glib::RefPtr ilayout; Glib::RefPtr deglayout;