[gnome-games] core: Add MediaSet.add_media()
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] core: Add MediaSet.add_media()
- Date: Thu, 1 Jun 2017 15:12:11 +0000 (UTC)
commit bc794623bea95143fe14885fcdaea736550e1e8e
Author: Adrien Plazas <kekun plazas laposte net>
Date: Thu Jun 1 11:56:27 2017 +0200
core: Add MediaSet.add_media()
This will help simplifying and making more flexible the construction of
a MediaSet.
https://bugzilla.gnome.org/show_bug.cgi?id=783319
src/core/media-set/media-set.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/core/media-set/media-set.vala b/src/core/media-set/media-set.vala
index e11ed52..3c530d0 100644
--- a/src/core/media-set/media-set.vala
+++ b/src/core/media-set/media-set.vala
@@ -13,6 +13,10 @@ public class Games.MediaSet : Object {
this.icon = icon;
}
+ public void add_media (Media media) {
+ medias += media;
+ }
+
public int get_size () {
return medias.length;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]