Figured out how to use gi-crystal with libadwaita, added find location function

This commit is contained in:
2022-12-23 18:03:06 -08:00
parent 0c0f7d881e
commit 23e48e7d4d
4 changed files with 8 additions and 5 deletions

View File

@@ -1,10 +1,10 @@
module Wince::Location
extend self
client = Geoclue::Simple.new()
@@client = Geoclue::Simple.new_sync("space.quietfeathers.Wince", Geoclue::AccuracyLevel::Street, nil)
def find_location()
location = client.location
location = @@client.location
[location.latitude, location.longitude]
end
end