summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick Storz <eduard.braun2@gmx.de>2019-08-10 21:31:37 +0000
committerPatrick Storz <eduard.braun2@gmx.de>2019-08-31 14:50:39 +0000
commit6a26fa643d13e46319bc96ede55bfd7581bff239 (patch)
treec439ab25f2358d055a10e81be3b9beaca2ec00f9 /src
parentAdd new widget "spacer" which adds an empty space between widgets (diff)
downloadinkscape-6a26fa643d13e46319bc96ede55bfd7581bff239.tar.gz
inkscape-6a26fa643d13e46319bc96ede55bfd7581bff239.zip
Templates: Remove unused "long_description" ("inkscape:_long" tag)
Probably fine to bring back, but it needs proper documentation.
Diffstat (limited to 'src')
-rw-r--r--src/ui/dialog/template-load-tab.cpp5
-rw-r--r--src/ui/dialog/template-load-tab.h2
-rw-r--r--src/ui/dialog/template-widget.cpp2
3 files changed, 2 insertions, 7 deletions
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<Glib::ustring> 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)