Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set Up Online Accounts #135

Merged
merged 2 commits into from
Jun 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions po/POTFILES
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ src/Views/FinishView.vala
src/Views/HouseKeepingView.vala
src/Views/LocationServicesView.vala
src/Views/NightLightView.vala
src/Views/OnlineAccountsView.vala
src/Views/StyleView.vala
src/Views/UpdateView.vala
src/Views/WelcomeView.vala
3 changes: 3 additions & 0 deletions src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ public class Onboarding.MainWindow : Hdy.ApplicationWindow {
var housekeeping_view = new HouseKeepingView ();
carousel.add (housekeeping_view);

var onlineaccounts_view = new OnlineAccountsView ();
carousel.add (onlineaccounts_view);

if (Environment.find_program_in_path ("io.elementary.appcenter") != null) {
var appcenter_view = new AppCenterView ();
carousel.add (appcenter_view);
Expand Down
35 changes: 35 additions & 0 deletions src/Views/OnlineAccountsView.vala
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* Copyright (c) 2021 elementary, Inc. (https://elementary.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* Authored by: Marius Meisenzahl <[email protected]>
*/

public class Onboarding.OnlineAccountsView : AbstractOnboardingView {
public OnlineAccountsView () {
Object (
view_name: "onlineaccounts",
description: _("Use Mail, Calendar, and Tasks with an existing online account to sync emails, events, and tasks with this device."),
icon_name: "preferences-desktop-online-accounts",
title: _("Online Accounts")
);
}

construct {
var settings_link = new Gtk.LinkButton.with_label ("settings://accounts/online", _("Connect Online Accounts…"));

custom_bin.add (settings_link);
}
}
1 change: 1 addition & 0 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ vala_files = [
'Views/HouseKeepingView.vala',
'Views/LocationServicesView.vala',
'Views/NightLightView.vala',
'Views/OnlineAccountsView.vala',
'Views/StyleView.vala',
'Views/UpdateView.vala',
'Views/WelcomeView.vala',
Expand Down