Figured out how to use gi-crystal with libadwaita, added find location function
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user