Code

add accessor for the updating state
authorbuliabyak <buliabyak@users.sourceforge.net>
Wed, 5 Sep 2007 16:07:56 +0000 (16:07 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Wed, 5 Sep 2007 16:07:56 +0000 (16:07 +0000)
src/ui/widget/registered-widget.h

index 7d71165dae947eac774355355d42cf0a4d13478d..3d4dd851b3adbea0b4c299a98644a9b95b2b936c 100644 (file)
@@ -17,6 +17,7 @@
 #include <gtkmm/tooltips.h>
 
 #include "xml/node.h"
+#include "registry.h"
 
 class SPUnit;
 class SPDocument;
@@ -49,6 +50,8 @@ public:
         write_undo = true;
     }
 
+    bool is_updating() {if (_wr) return _wr->isUpdating(); else return false;}
+
 protected:
     RegisteredWidget()
     {