From ca3c982fa485a6a30fcf2b10a999fc3708a46433 Mon Sep 17 00:00:00 2001 From: tkashkin Date: Wed, 3 Jul 2019 20:25:44 +0300 Subject: [PATCH] Fix build with newer Vala compiler (#271) Former-commit-id: 9d0ff03a1a842789cb4e283a55cb45b6453a4981 --- src/ui/dialogs/SettingsDialog/SettingsDialogPage.vala | 5 ----- src/ui/views/GameDetailsView/GameDetailsBlock.vala | 5 ----- src/utils/downloader/Downloader.vala | 4 ++-- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/ui/dialogs/SettingsDialog/SettingsDialogPage.vala b/src/ui/dialogs/SettingsDialog/SettingsDialogPage.vala index 7ff1ed25..128ddadf 100644 --- a/src/ui/dialogs/SettingsDialog/SettingsDialogPage.vala +++ b/src/ui/dialogs/SettingsDialog/SettingsDialogPage.vala @@ -32,11 +32,6 @@ namespace GameHub.UI.Dialogs.SettingsDialog protected Grid root_grid; protected Grid header_grid; - public SettingsDialogPage(SettingsDialog dlg) - { - Object(dialog: dlg); - } - construct { content_area.orientation = Orientation.VERTICAL; diff --git a/src/ui/views/GameDetailsView/GameDetailsBlock.vala b/src/ui/views/GameDetailsView/GameDetailsBlock.vala index d3c703ff..6e8b4d2d 100644 --- a/src/ui/views/GameDetailsView/GameDetailsBlock.vala +++ b/src/ui/views/GameDetailsView/GameDetailsBlock.vala @@ -32,11 +32,6 @@ namespace GameHub.UI.Views.GameDetailsView public bool is_dialog { get; construct; } - public GameDetailsBlock(Game game, bool is_dialog) - { - Object(game: game, orientation: Orientation.VERTICAL, is_dialog: is_dialog); - } - public abstract bool supports_game { get; } protected Box? add_info_label(string title, string? text, bool multiline=true, bool markup=false, Container? parent=null) diff --git a/src/utils/downloader/Downloader.vala b/src/utils/downloader/Downloader.vala index 2fd92c3c..025343e9 100644 --- a/src/utils/downloader/Downloader.vala +++ b/src/utils/downloader/Downloader.vala @@ -106,7 +106,7 @@ namespace GameHub.Utils.Downloader set { _status = value; status_change(_status); } } - public Download(File remote, File local, File local_tmp) + protected Download(File remote, File local, File local_tmp) { this.remote = remote; this.local = local; @@ -118,7 +118,7 @@ namespace GameHub.Utils.Downloader public abstract class PausableDownload: Download { - public PausableDownload(File remote, File local, File local_tmp) + protected PausableDownload(File remote, File local, File local_tmp) { base(remote, local, local_tmp); }