summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/selection-describer.cpp10
-rw-r--r--src/selection-describer.h2
2 files changed, 12 insertions, 0 deletions
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;
};