[gnome-games] nintendo-ds-layout-item: Fix subtitle check
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] nintendo-ds-layout-item: Fix subtitle check
- Date: Sat, 17 Aug 2019 22:47:19 +0000 (UTC)
commit 9854a6c568d1833afbfadd543c49b6b41b8d823d
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Sun Aug 18 03:46:43 2019 +0500
nintendo-ds-layout-item: Fix subtitle check
Actually check whether the string, rather than the label widget, is null.
plugins/nintendo-ds/src/nintendo-ds-layout-item.vala | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/plugins/nintendo-ds/src/nintendo-ds-layout-item.vala
b/plugins/nintendo-ds/src/nintendo-ds-layout-item.vala
index 09b969c1..359e123d 100644
--- a/plugins/nintendo-ds/src/nintendo-ds-layout-item.vala
+++ b/plugins/nintendo-ds/src/nintendo-ds-layout-item.vala
@@ -16,12 +16,13 @@ private class Games.NintendoDsLayoutItem : Gtk.ListBoxRow {
}
public override void constructed () {
- this.icon.icon_name = layout.get_icon ();
- this.title.label = layout.get_title ();
+ icon.icon_name = layout.get_icon ();
+ title.label = layout.get_title ();
- if (subtitle != null) {
- this.subtitle.label = layout.get_subtitle ();
- this.subtitle.show ();
+ var subtitle_str = layout.get_subtitle ();
+ if (subtitle_str != null) {
+ subtitle.label = subtitle_str;
+ subtitle.show ();
}
base.constructed ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]