summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a7d9410)
raw | patch | inline | side by side (parent: a7d9410)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Tue, 10 Feb 2009 15:22:58 +0000 (15:22 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Tue, 10 Feb 2009 15:22:58 +0000 (15:22 +0000) |
src/selection-describer.cpp | patch | blob | history | |
src/selection-describer.h | patch | blob | history |
index bd84030543fb2a6a62b45046a16fe464c1d28613..06c477f4bfbd8a1cc8ae8d7dc29c093bfadd2425 100644 (file)
@@ -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) {
index 91948c2fd325f0bb0bf7da2694ab6a7b39bdd105..0c4c9b9c4c10be4c709a79bb331fcb68ac9bc93d 100644 (file)
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;
};