X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fui%2Fpreviewholder.h;h=53ffd5f054dc7ea3899e6480a57b2e5ac330b004;hb=31841a4db29938aca3f0e06a90d00507dd937b5a;hp=1be306ba4f289f3abde36c52704207d8ea1d3d7c;hpb=00dae6914be1188d42895800b098bc336487669d;p=inkscape.git diff --git a/src/ui/previewholder.h b/src/ui/previewholder.h index 1be306ba4..53ffd5f05 100644 --- a/src/ui/previewholder.h +++ b/src/ui/previewholder.h @@ -29,6 +29,8 @@ public: virtual void clear(); virtual void addPreview( Previewable* preview ); + virtual void freezeUpdates(); + virtual void thawUpdates(); virtual void setStyle(Gtk::BuiltinIconSize size, ViewType view); virtual void setOrientation( Gtk::AnchorType how ); virtual int getColumnPref() const { return _prefCols; } @@ -43,11 +45,13 @@ protected: private: void rebuildUI(); + void calcGridSize( const Gtk::Widget* thing, int itemCount, int& width, int& height ); std::vector items; Gtk::Bin *_scroller; Gtk::Table *_insides; int _prefCols; + bool _updatesFrozen; Gtk::AnchorType _anchor; Gtk::BuiltinIconSize _baseSize; ViewType _view;