[dconf-editor] Notify when no summary is provided.
- From: Arnaud Bonatti <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Notify when no summary is provided.
- Date: Sat, 7 Jan 2017 06:59:26 +0000 (UTC)
commit eb8ad4d397a8c8c1d09da0290f27c9762486f913
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Sat Jan 7 07:25:10 2017 +0100
Notify when no summary is provided.
editor/key-list-box-row.vala | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/editor/key-list-box-row.vala b/editor/key-list-box-row.vala
index cb26522..f3b283e 100644
--- a/editor/key-list-box-row.vala
+++ b/editor/key-list-box-row.vala
@@ -255,7 +255,13 @@ private class KeyListBoxRowEditable : KeyListBoxRow
{
Object (key: _key);
- key_info_label.set_label (key.summary);
+ if (key.summary != "")
+ key_info_label.set_label (key.summary);
+ else
+ {
+ key_info_label.get_style_context ().add_class ("italic-label");
+ key_info_label.set_label (_("No summary provided"));
+ }
}
protected override void update ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]