Skip to content

Commit

Permalink
Startup: use Granite.SettingsPage
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit committed Mar 18, 2024
1 parent fe2f305 commit 50ec581
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions src/Startup/Startup.vala
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,23 @@
* Julien Spautz <[email protected]>
*/

public class Startup.Plug : Gtk.Box {
public class Startup.Plug : Switchboard.SettingsPage {
private Controller controller;
private Gtk.ListBox list;
private Widgets.AppChooser app_chooser;

public Plug () {
Object (
title: _("Startup"),
icon: new ThemedIcon ("system-restart")
);
}

construct {
Backend.KeyFileFactory.init ();

var empty_alert = new Granite.Placeholder (_("Launch Apps on Startup")) {
description = _("Add apps to the Startup list by clicking the icon in the toolbar below."),
icon = new ThemedIcon ("system-restart")
description = _("Add apps to the Startup list by clicking the icon in the toolbar below.")
};

list = new Gtk.ListBox () {
Expand Down Expand Up @@ -57,14 +63,7 @@ public class Startup.Plug : Gtk.Box {
child = box
};

var clamp = new Adw.Clamp () {
child = frame,
margin_end = 12,
margin_bottom = 12,
margin_start = 12
};

append (clamp);
child = frame;

app_chooser = new Widgets.AppChooser () {
modal = true
Expand Down

0 comments on commit 50ec581

Please sign in to comment.