summaryrefslogtreecommitdiff
path: root/src/Thumbnail.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2018-09-30 14:09:32 +0200
committerJörg Frings-Fürst <debian@jff.email>2018-09-30 14:09:32 +0200
commit0537caaf4af94a9ead8b292679f6b34c90b55e06 (patch)
tree6761cfdf959926be7af3147cf770e7f253390fe8 /src/Thumbnail.vala
parenteca5837e235a356c8db9416bbbc13577db3e6f76 (diff)
parent5e9f4eea451a77ba3b93db3747841ed2bd969e9f (diff)
Update upstream source from tag 'upstream/0.30.1'
Update to upstream version '0.30.1' with Debian dir dc242531effff8d9c6fab093414edee28b403c6a
Diffstat (limited to 'src/Thumbnail.vala')
-rw-r--r--src/Thumbnail.vala16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/Thumbnail.vala b/src/Thumbnail.vala
index 17dda4b..f47fc69 100644
--- a/src/Thumbnail.vala
+++ b/src/Thumbnail.vala
@@ -57,8 +57,7 @@ public class Thumbnail : MediaSourceItem {
Tag.global.items_altered.connect(on_tags_altered);
assert((media is LibraryPhoto) || (media is Video));
- set_enable_sprockets(media is Video);
-
+
original_dim = media.get_dimensions();
dim = original_dim.get_scaled(scale, true);
@@ -378,12 +377,15 @@ public class Thumbnail : MediaSourceItem {
base.unexposed();
}
-
+
protected override Gdk.Pixbuf? get_top_right_trinket(int scale) {
Flaggable? flaggable = media as Flaggable;
- return (flaggable != null && flaggable.is_flagged())
- ? Resources.get_icon(Resources.ICON_FLAGGED_TRINKET) : null;
+ if (!(flaggable != null && flaggable.is_flagged()))
+ return null;
+
+ return Resources.get_flagged_trinket(scale);
+
}
protected override Gdk.Pixbuf? get_bottom_left_trinket(int scale) {
@@ -393,4 +395,8 @@ public class Thumbnail : MediaSourceItem {
return (rating != Rating.UNRATED && show_ratings)
? Resources.get_rating_trinket(rating, scale) : null;
}
+
+ protected override Gdk.Pixbuf? get_top_left_trinket(int scale) {
+ return (media is Video) ? Resources.get_video_trinket (scale) : null;
+ }
}