Now the "Show EXIF info" in the editor remember its state, and propagate to the other editor tabs
This commit is contained in:
parent
805044a64f
commit
a9fea09400
@ -293,6 +293,9 @@ void EditorPanel::setAspect () {
|
|||||||
parent->get_size(winW, winH);
|
parent->get_size(winW, winH);
|
||||||
hpanedl->set_position(options.historyPanelWidth);
|
hpanedl->set_position(options.historyPanelWidth);
|
||||||
hpanedr->set_position(winW - options.toolPanelWidth);
|
hpanedr->set_position(winW - options.toolPanelWidth);
|
||||||
|
// initialize components
|
||||||
|
if (info->get_active() != options.showInfo)
|
||||||
|
info->set_active (options.showInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EditorPanel::on_realize () {
|
void EditorPanel::on_realize () {
|
||||||
|
@ -26,7 +26,6 @@
|
|||||||
|
|
||||||
ImageArea::ImageArea (ImageAreaPanel* p) : parent(p) {
|
ImageArea::ImageArea (ImageAreaPanel* p) : parent(p) {
|
||||||
|
|
||||||
showInfo = false;
|
|
||||||
infotext = "";
|
infotext = "";
|
||||||
cropgl = NULL;
|
cropgl = NULL;
|
||||||
pmlistener = NULL;
|
pmlistener = NULL;
|
||||||
@ -121,8 +120,8 @@ void ImageArea::setInfoText (Glib::ustring text) {
|
|||||||
|
|
||||||
void ImageArea::infoEnabled (bool e) {
|
void ImageArea::infoEnabled (bool e) {
|
||||||
|
|
||||||
if (showInfo!=e) {
|
if (options.showInfo!=e) {
|
||||||
showInfo = e;
|
options.showInfo = e;
|
||||||
queue_draw ();
|
queue_draw ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -148,7 +147,7 @@ bool ImageArea::on_expose_event(GdkEventExpose* event) {
|
|||||||
if (mainCropWindow)
|
if (mainCropWindow)
|
||||||
mainCropWindow->expose (cr);
|
mainCropWindow->expose (cr);
|
||||||
|
|
||||||
if (showInfo==true && infotext!="") {
|
if (options.showInfo==true && infotext!="") {
|
||||||
int fnw, fnh;
|
int fnw, fnh;
|
||||||
ilayout->get_pixel_size (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);
|
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);
|
||||||
|
@ -37,7 +37,6 @@ class ImageArea : public Gtk::DrawingArea, public CropWindowListener {
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
bool showInfo;
|
|
||||||
Glib::ustring infotext;
|
Glib::ustring infotext;
|
||||||
Glib::RefPtr<Pango::Layout> ilayout;
|
Glib::RefPtr<Pango::Layout> ilayout;
|
||||||
Glib::RefPtr<Pango::Layout> deglayout;
|
Glib::RefPtr<Pango::Layout> deglayout;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user