Skip to content
Closed
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: 0 additions & 1 deletion data/io.elementary.greeter.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
[greeter]
#activate-numlock=true
8 changes: 0 additions & 8 deletions src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,6 @@ public class Greeter.MainWindow : Gtk.ApplicationWindow {

maximize ();

if (settings.activate_numlock) {
try {
Process.spawn_async (null, { "numlockx", "on" }, null, SpawnFlags.SEARCH_PATH, null, null);
} catch (Error e) {
warning ("Unable to spawn numlockx to set numlock state");
}
}

main_box.realize.connect (init_panel);
}

Expand Down
11 changes: 0 additions & 11 deletions src/Settings.vala
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,6 @@
public class Greeter.Settings : GLib.Object {
private GLib.KeyFile settings;

public bool activate_numlock {
get {
try {
return settings.get_boolean ("greeter", "activate-numlock");
} catch (Error e) {
debug (e.message);
return false;
}
}
}

construct {
settings = new GLib.KeyFile ();
try {
Expand Down