diff options
| author | Nicolas Dufour <nicoduf@yahoo.fr> | 2013-05-12 12:36:06 +0000 |
|---|---|---|
| committer | JazzyNico <nicoduf@yahoo.fr> | 2013-05-12 12:36:06 +0000 |
| commit | bf463fba185a4e67d25efe324a577cf89dcdce5f (patch) | |
| tree | 768949cc7e5dfc2541da7d07455b8cc3fc477a97 /src/selcue.h | |
| parent | Fix for Bug #181493 (Locked layers not completely locked) by frenchie4111. (diff) | |
| download | inkscape-bf463fba185a4e67d25efe324a577cf89dcdce5f.tar.gz inkscape-bf463fba185a4e67d25efe324a577cf89dcdce5f.zip | |
Fix for Bug #448872 (Changing the bounding box type in preferences does not update the preview) by Vinipsmaker.
Fixed bugs:
- https://launchpad.net/bugs/448872
(bzr r12329)
Diffstat (limited to '')
| -rw-r--r-- | src/selcue.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/selcue.h b/src/selcue.h index f62ef768a..bcac7315f 100644 --- a/src/selcue.h +++ b/src/selcue.h @@ -37,10 +37,25 @@ public: }; private: + class BoundingBoxPrefsObserver: public Preferences::Observer + { + public: + BoundingBoxPrefsObserver(SelCue &sel_cue); + + void notify(Preferences::Entry const &val); + + private: + SelCue &_sel_cue; + }; + + friend class Inkscape::SelCue::BoundingBoxPrefsObserver; void _updateItemBboxes(); + void _updateItemBboxes(Inkscape::Preferences *prefs); + void _updateItemBboxes(gint mode, int prefs_bbox); void _newItemBboxes(); void _newTextBaselines(); + void _boundingBoxPrefsChanged(int prefs_bbox); SPDesktop *_desktop; Selection *_selection; @@ -48,6 +63,8 @@ private: sigc::connection _sel_modified_connection; std::vector<SPCanvasItem*> _item_bboxes; std::vector<SPCanvasItem*> _text_baselines; + + BoundingBoxPrefsObserver _bounding_box_prefs_observer; }; } |
