From 0279209622e0fcf586dcb3844a2c9a1e35043e27 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Tue, 10 Feb 2009 15:22:58 +0000 Subject: [PATCH] now that selection description includes style (filtered, clipped), we need to update it on modified signal as well --- src/selection-describer.cpp | 10 ++++++++++ src/selection-describer.h | 2 ++ 2 files changed, 12 insertions(+) diff --git a/src/selection-describer.cpp b/src/selection-describer.cpp index bd8403054..06c477f4b 100644 --- a/src/selection-describer.cpp +++ b/src/selection-describer.cpp @@ -100,13 +100,23 @@ SelectionDescriber::SelectionDescriber(Inkscape::Selection *selection, MessageSt _selection_changed_connection = new sigc::connection ( selection->connectChanged( sigc::mem_fun(*this, &SelectionDescriber::_updateMessageFromSelection))); + _selection_modified_connection = new sigc::connection ( + selection->connectModified( + sigc::mem_fun(*this, &SelectionDescriber::_selectionModified))); _updateMessageFromSelection(selection); } SelectionDescriber::~SelectionDescriber() { _selection_changed_connection->disconnect(); + _selection_modified_connection->disconnect(); delete _selection_changed_connection; + delete _selection_modified_connection; +} + +void SelectionDescriber::_selectionModified(Inkscape::Selection *selection, guint /*flags*/) +{ + _updateMessageFromSelection(selection); } void SelectionDescriber::_updateMessageFromSelection(Inkscape::Selection *selection) { diff --git a/src/selection-describer.h b/src/selection-describer.h index 91948c2fd..0c4c9b9c4 100644 --- a/src/selection-describer.h +++ b/src/selection-describer.h @@ -28,8 +28,10 @@ public: private: void _updateMessageFromSelection(Inkscape::Selection *selection); + void _selectionModified(Inkscape::Selection *selection, guint /*flags*/); sigc::connection *_selection_changed_connection; + sigc::connection *_selection_modified_connection; MessageContext _context; }; -- 2.30.2