Commit Graph
508 Commits
Author SHA1 Message Date
Lea Anthony a788b3a522 Improved window parameter handling 2024-05-05 18:35:02 +10:00
Lea Anthony ddec52858b Remove window from context 2024-05-05 18:34:50 +10:00
Lea Anthony bf9c1f08bc Potential solution for getting the calling window of a bound method. 2024-05-05 18:34:46 +10:00
Travis McLaneandLea Anthony 910b6936b7 noop: remove Println for events.Linux.ApplicationStartup 2024-05-05 18:32:28 +10:00
Travis McLaneandLea Anthony 628b27691f remove Println
unknown key codes shouldn't print out to stdout
2024-05-05 18:32:27 +10:00
Travis McLaneandLea Anthony 5ee1140041 remove Register/UnregisterWindow functionality
- this is no longer needed
2024-05-05 18:32:26 +10:00
Harry FoxandLea Anthony c65e130237 add missing map init from application.init() (#3426)
* add missing map init from `application.init()`

* add changelog entry for #3426

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2024-05-05 18:32:26 +10:00
b0bce075da [v3] Binding runtime fixes (#3431)
* Unmarshal arguments to appropriate type in binding calls

* Marshal multiple return values to arrays in binding calls

* Improve logging of remote method calls

* Add tests for `BoundMethod.Call`

* Fix return value if error is nil

* Update changelog

---------

Co-authored-by: Andreas Bichinger <andreas.bichinger@gmail.com>
2024-05-05 18:32:25 +10:00
Lea Anthony 24051330a6 Remove window from context 2024-04-28 14:48:22 +10:00
Lea Anthony 29d4aac7e2 Support window as second parameter 2024-04-27 16:13:12 +10:00
Lea Anthony 8ea58bef2c Support window as second parameter 2024-04-27 14:29:48 +10:00
Lea Anthony c76b88b7b2 Potential solution for getting the calling window of a bound method. 2024-04-25 17:01:22 +10:00
Lea Anthony 5d0a58cc6a Update GetRelative/AbsolutePosition to take border size into account 2024-04-25 15:59:33 +10:00
Lea Anthony 368ca13314 Update window interface 2024-04-25 15:26:31 +10:00
Lea Anthony 2cee1edcb5 Add window.GetBorderSizes 2024-04-25 15:22:01 +10:00
021efab84d allow for non-Window WailsEvent listeners (#3406)
* allow for non-Window WailsEvent listeners

- adds a RegisterListener function on the App struct such
  that code can listen for WailsEvent(s) even if it isn't a Window
- rename dispatchEventToWindows -> dispatchEventToListeners
- add all windows and WailsEventListeners to slice before emitting

* Update v3/pkg/application/application.go

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2024-04-20 09:39:57 +10:00
abichingerandGitHub 9ca1b30da1 [v3 alpha] Fix drag-n-drop on some linux distros (#3346)
* Fix drag and drop on linux

- Move C code

* Use GTK_DEST_DEFAULT_DROP

* Update changelog

* Move C code back into `linux_cgo.go`
2024-04-15 10:05:23 -05:00
220d5535f7 revert dialog channel close (#3395)
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2024-04-15 18:03:35 +10:00
Lea Anthony 6f41dbf954 Merge branch 'refs/heads/v3-alpha-feature/plugin-updates' into v3-alpha 2024-04-14 21:42:16 +10:00
Lea Anthony c7ed7e72d4 Major plugin updates 2024-04-14 21:41:33 +10:00
abichingerandGitHub 7c921d6a81 [v3 alpha] implement setIcon on linux (#3354)
* implement `linuxApp.setIcon`

* Move code into `linux_cgo.go`
2024-04-09 11:04:54 -05:00
atterpacandTravis McLane 6f75b00463 Proper syncing and canceling of dialogs
s

s

s
2024-04-08 11:17:05 -05:00
Travis McLane 105d9f0d3a allow directory selection 2024-04-07 16:42:33 -05:00
atterpacandTravis McLane 38f6b1297d Call linux dialog on main thread 2024-04-07 16:42:33 -05:00
Lea Anthony cf130a6e25 [windows] Fix directory select in Open Dialog 2024-04-06 14:38:43 +11:00