-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fe2f305
commit 50ec581
Showing
1 changed file
with
10 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 () { | ||
|
@@ -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 | ||
|