summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2009-02-10 15:22:58 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2009-02-10 15:22:58 +0000
commit5376ac86a0a284a8bc166dd1b1c176c9f704a967 (patch)
treee645d6e8f0b86b1118b69c8a52422d35662bb0da /src
parentBig filters update (diff)
downloadinkscape-5376ac86a0a284a8bc166dd1b1c176c9f704a967.tar.gz
inkscape-5376ac86a0a284a8bc166dd1b1c176c9f704a967.zip
now that selection description includes style (filtered, clipped), we need to update it on modified signal as well
(bzr r7263)
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;
};