Skip to content

Commit

Permalink
Sync orientation lock (#694)
Browse files Browse the repository at this point in the history
  • Loading branch information
lenemter authored Jan 29, 2024
1 parent 7111c22 commit a9ffd24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Cards/UserCard.vala
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,9 @@ public class Greeter.UserCard : Greeter.BaseCard {
interface_settings.set_value ("document-font-name", settings_act.document_font_name);
interface_settings.set_value ("font-name", settings_act.font_name);
interface_settings.set_value ("monospace-font-name", settings_act.monospace_font_name);

var touchscreen_settings = new GLib.Settings ("org.gnome.settings-daemon.peripherals.touchscreen");
touchscreen_settings.set_boolean ("orientation-lock", settings_act.orientation_lock);
}

private void set_night_light_settings () {
Expand Down
1 change: 1 addition & 0 deletions src/PantheonAccountsServicePlugin.vala
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ interface Pantheon.SettingsDaemon.AccountsService : Object {
public abstract string document_font_name { owned get; set; }
public abstract string font_name { owned get; set; }
public abstract string monospace_font_name { owned get; set; }
public abstract bool orientation_lock { get; set; }

/* Night Light */
public struct Coordinates {
Expand Down

0 comments on commit a9ffd24

Please # to comment.