index bd84030543fb2a6a62b45046a16fe464c1d28613..27dd8413a25a7f22b5e4abd43a0705a580f1d7e7 100644 (file)
type2term(GType type)
{
if (type == SP_TYPE_ANCHOR)
- // TRANSLATORS: only translate and put "Link" in the translation. It means internet link (anchor)
+ //TRANSLATORS: only translate "string" in "context|string".
+ // For more details, see http://developer.gnome.org/doc/API/2.0/glib/glib-I18N.html#Q-:CAPS
+ // "Link" means internet link (anchor)
{ return Q_("web|Link"); }
if (type == SP_TYPE_CIRCLE)
{ return _("Circle"); }
{ return _("3D Box"); }
if (type == SP_TYPE_TEXT)
{ return _("Text"); }
- // TRANSLATORS: only translate "string" in "context|string".
- // For more details, see http://developer.gnome.org/doc/API/2.0/glib/glib-I18N.html#Q-:CAPS
if (type == SP_TYPE_USE)
+ // TRANSLATORS: only translate "string" in "context|string".
+ // For more details, see http://developer.gnome.org/doc/API/2.0/glib/glib-I18N.html#Q-:CAPS
+ // "Clone" is a noun, type of object
{ return Q_("object|Clone"); }
if (type == SP_TYPE_ARC)
{ return _("Ellipse"); }
@@ -100,13 +103,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) {