[gnome-sound-recorder] trivial: If the media type cannot be determined label it as "Unknown"
- From: Meg Ford (Margaret) <megford src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sound-recorder] trivial: If the media type cannot be determined label it as "Unknown"
- Date: Thu, 2 Jun 2016 02:52:12 +0000 (UTC)
commit 8cfa8cc528e56d67d50c71a762485aa21b1dc539
Author: Miguel Vaello MartÃnez <miguel vaellomartinez gmail com>
Date: Wed May 25 22:21:14 2016 +0200
trivial: If the media type cannot be determined label it as "Unknown"
In rare cases, intead leave le field empty is better to
known that cannot be determined and keep the user informed
about the "error" with a "Unknown" message.
https://bugzilla.gnome.org/show_bug.cgi?id=766885
Signed-off-by: Meg Ford <megford gnome org>
src/info.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/info.js b/src/info.js
index c6a4535..5a4e298 100644
--- a/src/info.js
+++ b/src/info.js
@@ -148,8 +148,8 @@ const InfoDialog = new Lang.Class({
grid.attach_next_to(this._dateCreatedData, this._dateCreatedLabel, Gtk.PositionType.RIGHT, 2, 1);
}
- // Document type value
- this._mediaTypeData = new Gtk.Label({ label: fileName.mediaType,
+ // Media type data
+ this._mediaTypeData = new Gtk.Label({ label: fileName.mediaType || _("Unknown"),
halign: Gtk.Align.START });
grid.attach_next_to(this._mediaTypeData, this._mediaType, Gtk.PositionType.RIGHT, 2, 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]