forked from aparoksha/adwaita-swift
Merge branch 'main' of https://github.com/AparokshaUI/adwaita-swift
This commit is contained in:
commit
c82957e239
@ -15,7 +15,11 @@ public class GTUIAboutWindow: GTUIWindow {
|
|||||||
public init(filePath: String? = nil) {
|
public init(filePath: String? = nil) {
|
||||||
super.init(fields: [:])
|
super.init(fields: [:])
|
||||||
if let filePath {
|
if let filePath {
|
||||||
|
#if os(Windows)
|
||||||
|
pointer = adw_about_window_new()?.cast()
|
||||||
|
#else
|
||||||
pointer = adw_about_window_new_from_appdata(filePath, nil)?.cast()
|
pointer = adw_about_window_new_from_appdata(filePath, nil)?.cast()
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
pointer = adw_about_window_new()?.cast()
|
pointer = adw_about_window_new()?.cast()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user