summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/registered-widget.h
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2007-09-27 12:33:10 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2007-09-27 12:33:10 +0000
commit061bd232b2031ce8697b35a1ce620a29c7db603b (patch)
tree07950b51eb3b8d66763522d3bef091fc2b42eac7 /src/ui/widget/registered-widget.h
parentDisallow all but RGB Display profiles for previewing (diff)
downloadinkscape-061bd232b2031ce8697b35a1ce620a29c7db603b.tar.gz
inkscape-061bd232b2031ce8697b35a1ce620a29c7db603b.zip
fixing undo problems with LPE widgets. Not completely fixed yet. CheckButtons still crash, and some changes are not recorded in the history (try the random parameters of curve stitching)
(bzr r3809)
Diffstat (limited to 'src/ui/widget/registered-widget.h')
-rw-r--r--src/ui/widget/registered-widget.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ui/widget/registered-widget.h b/src/ui/widget/registered-widget.h
index 3d4dd851b..33d7c29cd 100644
--- a/src/ui/widget/registered-widget.h
+++ b/src/ui/widget/registered-widget.h
@@ -100,7 +100,10 @@ public:
void setSlaveButton(std::list<Gtk::ToggleButton*> btns) {
_slavebuttons = btns;
}
-
+
+ bool setProgrammatically; // true if the value was set by setValue, not changed by the user;
+ // if a callback checks it, it must reset it back to false
+
protected:
Gtk::Tooltips _tt;
@@ -235,6 +238,8 @@ public:
void setValue (int);
Gtk::Label *_label;
Gtk::HBox _hbox;
+ bool setProgrammatically; // true if the value was set by setValue, not changed by the user;
+ // if a callback checks it, it must reset it back to false
protected:
Gtk::SpinButton *_sb;
@@ -269,6 +274,8 @@ public:
void setValue (bool second);
Gtk::HBox *_hbox;
+ bool setProgrammatically; // true if the value was set by setValue, not changed by the user;
+ // if a callback checks it, it must reset it back to false
protected:
Gtk::RadioButton *_rb1, *_rb2;
Gtk::Tooltips _tt;