diff options
author | Dan Williams <dcbw@redhat.com> | 2007-03-14 23:40:28 (GMT) |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2007-03-14 23:40:28 (GMT) |
commit | 06b505afbe7d20e2c85d2bc125f457fcf9f66424 (patch) | |
tree | 068cb710812232178cf3ebf2f3b7a4d6a2fe25ce | |
parent | bdbfbbc34e6ca9f4eba3e6ba20a38c6dda7c8691 (diff) |
Display document title, if any
-rw-r--r-- | XbookActivity.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/XbookActivity.py b/XbookActivity.py index 9974b34..d4dae08 100644 --- a/XbookActivity.py +++ b/XbookActivity.py @@ -65,6 +65,11 @@ class XbookActivity(activity.Activity): self._document = evince.factory_get_document('file://' + filename) self._view.set_document(self._document) self._toolbar.set_document(self._document) + title = _("Read Activity") + info = self._document.get_info() + if info and info.title: + title += ": " + info.title + self.set_title(title) def _open_document_cb(self, widget): filt = gtk.FileFilter() |