Code

Check for null pointer
[inkscape.git] / src / ui / previewholder.h
index d165e5bf93b3f3dd4531bfc845902f6a2ecfb176..53ffd5f054dc7ea3899e6480a57b2e5ac330b004 100644 (file)
@@ -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; }
@@ -49,6 +51,7 @@ private:
     Gtk::Bin *_scroller;
     Gtk::Table *_insides;
     int _prefCols;
+    bool _updatesFrozen;
     Gtk::AnchorType _anchor;
     Gtk::BuiltinIconSize _baseSize;
     ViewType _view;