summaryrefslogtreecommitdiff
path: root/src/lib/image_content.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-11-23 12:22:34 +0000
committerCarl Hetherington <cth@carlh.net>2013-11-23 12:22:34 +0000
commita0c0e609f7fbff8513135428378cc16684bae937 (patch)
tree25e800debbb1ec6ab60fd0a4fc8e593c81addaea /src/lib/image_content.cc
parent90b84151b9817b33381187f678cb2fdd062ed785 (diff)
Remove Content::path(), add Content::path_summary().
Diffstat (limited to 'src/lib/image_content.cc')
-rw-r--r--src/lib/image_content.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/image_content.cc b/src/lib/image_content.cc
index 9259242a0..14a7c97d5 100644
--- a/src/lib/image_content.cc
+++ b/src/lib/image_content.cc
@@ -60,12 +60,15 @@ ImageContent::ImageContent (shared_ptr<const Film> f, shared_ptr<const cxml::Nod
string
ImageContent::summary () const
{
+ string s = path_summary () + " ";
/* Get the string() here so that the name does not have quotes around it */
if (still ()) {
- return String::compose (_("%1 [still]"), path().filename().string());
+ s += _("[still]");
+ } else {
+ s += _("[moving images]");
}
- return String::compose (_("%1 [moving images]"), path().filename().string());
+ return s;
}
string