[gnome-games] ui: Don't use 'construct set' where possible
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] ui: Don't use 'construct set' where possible
- Date: Wed, 21 Aug 2019 21:22:22 +0000 (UTC)
commit c829fad9dd4185c966fc474b84c68b948652bae1
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Thu Aug 22 02:15:21 2019 +0500
ui: Don't use 'construct set' where possible
If a property is not going to change, just use 'construct' instead.
src/ui/collection-box.vala | 2 +-
src/ui/collection-view.vala | 2 +-
src/ui/display-view.vala | 2 +-
src/ui/preferences-page.vala | 1 -
4 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/ui/collection-box.vala b/src/ui/collection-box.vala
index 00ed2d25..e1f96981 100644
--- a/src/ui/collection-box.vala
+++ b/src/ui/collection-box.vala
@@ -4,7 +4,7 @@
private class Games.CollectionBox : Gtk.Box {
public signal void game_activated (Game game);
- public ListModel collection { get; construct set; }
+ public ListModel collection { get; construct; }
public bool search_mode { get; set; }
public bool loading_notification { get; set; }
diff --git a/src/ui/collection-view.vala b/src/ui/collection-view.vala
index 517164fb..ab2f1bb1 100644
--- a/src/ui/collection-view.vala
+++ b/src/ui/collection-view.vala
@@ -32,7 +32,7 @@ private class Games.CollectionView : Object, UiView {
}
}
- public Gtk.Window window { get; construct set; }
+ public Gtk.Window window { get; construct; }
public ListModel collection { get; construct; }
public bool loading_notification { get; set; }
diff --git a/src/ui/display-view.vala b/src/ui/display-view.vala
index 399d1098..a65f909e 100644
--- a/src/ui/display-view.vala
+++ b/src/ui/display-view.vala
@@ -36,7 +36,7 @@ private class Games.DisplayView : Object, UiView {
}
}
- public Gtk.Window window { get; construct set; }
+ public Gtk.Window window { get; construct; }
public bool is_fullscreen { get; set; }
diff --git a/src/ui/preferences-page.vala b/src/ui/preferences-page.vala
index 16b6b28b..f34449bf 100644
--- a/src/ui/preferences-page.vala
+++ b/src/ui/preferences-page.vala
@@ -5,7 +5,6 @@ private class Games.PreferencesPage : Gtk.Bin, Gtk.Buildable {
public PreferencesSubpage subpage { get; protected set; }
public string title { get; construct set; }
-
[GtkChild]
private Gtk.Label error_label;
[GtkChild]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]