From 6a26fa643d13e46319bc96ede55bfd7581bff239 Mon Sep 17 00:00:00 2001 From: Patrick Storz Date: Sat, 10 Aug 2019 23:31:37 +0200 Subject: Templates: Remove unused "long_description" ("inkscape:_long" tag) Probably fine to bring back, but it needs proper documentation. --- src/ui/dialog/template-load-tab.cpp | 5 +---- src/ui/dialog/template-load-tab.h | 2 +- src/ui/dialog/template-widget.cpp | 2 -- 3 files changed, 2 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/ui/dialog/template-load-tab.cpp b/src/ui/dialog/template-load-tab.cpp index 6c17a9a96..9ca93910d 100644 --- a/src/ui/dialog/template-load-tab.cpp +++ b/src/ui/dialog/template-load-tab.cpp @@ -170,8 +170,7 @@ void TemplateLoadTab::_refreshTemplatesList() if (it.second.keywords.count(_current_keyword.lowercase()) != 0 || it.second.display_name.lowercase().find(_current_keyword.lowercase()) != Glib::ustring::npos || it.second.author.lowercase().find(_current_keyword.lowercase()) != Glib::ustring::npos || - it.second.short_description.lowercase().find(_current_keyword.lowercase()) != Glib::ustring::npos || - it.second.long_description.lowercase().find(_current_keyword.lowercase()) != Glib::ustring::npos ) + it.second.short_description.lowercase().find(_current_keyword.lowercase()) != Glib::ustring::npos) { Gtk::TreeModel::iterator iter = _tlist_store->append(); Gtk::TreeModel::Row row = *iter; @@ -286,8 +285,6 @@ void TemplateLoadTab::_getDataFromNode(Inkscape::XML::Node *dataNode, TemplateDa data.author = currentData->firstChild()->content(); if ((currentData = sp_repr_lookup_name(dataNode, "inkscape:_shortdesc")) != nullptr) data.short_description = _( currentData->firstChild()->content()); - if ((currentData = sp_repr_lookup_name(dataNode, "inkscape:_long") )!= nullptr) - data.long_description = _(currentData->firstChild()->content()); if ((currentData = sp_repr_lookup_name(dataNode, "inkscape:preview")) != nullptr) data.preview_name = currentData->firstChild()->content(); if ((currentData = sp_repr_lookup_name(dataNode, "inkscape:date")) != nullptr) diff --git a/src/ui/dialog/template-load-tab.h b/src/ui/dialog/template-load-tab.h index 037d7782c..be0bdc161 100644 --- a/src/ui/dialog/template-load-tab.h +++ b/src/ui/dialog/template-load-tab.h @@ -43,7 +43,7 @@ public: Glib::ustring display_name; Glib::ustring author; Glib::ustring short_description; - Glib::ustring long_description; + Glib::ustring long_description; // unused Glib::ustring preview_name; Glib::ustring creation_date; std::set keywords; diff --git a/src/ui/dialog/template-widget.cpp b/src/ui/dialog/template-widget.cpp index be94b79c0..a60443f47 100644 --- a/src/ui/dialog/template-widget.cpp +++ b/src/ui/dialog/template-widget.cpp @@ -124,8 +124,6 @@ void TemplateWidget::_displayTemplateDetails() if (_current_template.path != "") message += _("Path: ") + _current_template.path + "\n\n"; - if (_current_template.long_description != "") - message += _("Description: ") + _current_template.long_description + "\n\n"; if (!_current_template.keywords.empty()){ message += _("Keywords: "); for (const auto & keyword : _current_template.keywords) -- cgit v1.2.3