Solving issue 1241 on behalf of skraft61: "CropHandler::update is called too often". It also remove the main preview's scrollbars.

This commit is contained in:
natureh
2012-02-25 19:41:44 +01:00
parent ea5a4f73cf
commit d5cc52771b
8 changed files with 77 additions and 168 deletions

View File

@@ -25,15 +25,10 @@ class ImageArea;
class ImageAreaPanel : public Gtk::VBox {
protected:
Gtk::HScrollbar* hscroll;
Gtk::VScrollbar* vscroll;
sigc::connection hscrollconn;
sigc::connection vscrollconn;
ImageAreaPanel *before, *after;
void synchronize ();
void configScrollBars ();
ImageAreaPanel *before, *after;
public:
ImageArea* imageArea;
@@ -41,13 +36,10 @@ class ImageAreaPanel : public Gtk::VBox {
ImageAreaPanel ();
~ImageAreaPanel ();
void scrollChanged ();
void imageAreaResized (Gtk::Allocation& req);
void refreshScrollBars ();
void zoomChanged ();
void setBeforeAfterViews (ImageAreaPanel* bef, ImageAreaPanel* aft);
void syncBeforeAfterViews();
};
#endif