diff options
Diffstat (limited to 'src/model/homeactivity.py')
-rw-r--r-- | src/model/homeactivity.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/model/homeactivity.py b/src/model/homeactivity.py index 34ebda3..8965dec 100644 --- a/src/model/homeactivity.py +++ b/src/model/homeactivity.py @@ -166,6 +166,10 @@ class HomeActivity(gobject.GObject): else: return None + def is_journal(self): + """Returns boolean if the activity is of type JournalActivity""" + return self.get_type() == 'org.laptop.JournalActivity' + def get_launch_time(self): """Return the time at which the activity was first launched |