Commit graph

54 commits

Author SHA1 Message Date
mjk f193948f4e constify all the things 2021-06-09 07:19:43 -03:00
mjk 401c4a1bb1 change some local functions' signatures 2021-06-09 07:19:43 -03:00
mjk 34519e96bd make GetEnv more robust and not limit length of variables 2021-06-09 07:19:42 -03:00
mjk fb754b0d43 generalize GetShortcutPath into GetEnv 2021-06-09 07:19:42 -03:00
mjk 2eb1eea06e clarify GetCurrentModulePath's name 2021-06-09 07:19:41 -03:00
mjk 5b40d166d2 make GetCurrentModulePath and GetShortcutPath throw win32 errors 2021-06-09 07:19:41 -03:00
mjk 2ad659f777 clarify some entry points' names 2021-06-09 07:19:40 -03:00
mjk b21066c89e mark exception-safe C entry points as such 2021-06-09 07:19:40 -03:00
mjk 1bd1376cea stop exceptions from crossing ABI boundary in a few places 2021-06-09 07:19:40 -03:00
mjk f1b5633ce6 introduce try_invoke -- a logging exception catcher 2021-06-09 07:19:39 -03:00
LAGonauta 3d9dcbcf87 Valac think that getters are always owned by the struct 2021-06-09 07:19:38 -03:00
LAGonauta 8856fcbceb Use g_new0 and g_free to generate raw strings 2021-06-09 07:19:37 -03:00
LAGonauta 94944a9e2a Use async 2021-06-09 07:19:37 -03:00
LAGonauta 7de1c01fe8 Add comment to builder 2021-06-09 07:19:36 -03:00
LAGonauta 0f555da7a9 Fixed crash with multiple notifications
Sometimes an invalid function pointer was called with an invalid context
2021-06-09 07:19:35 -03:00
LAGonauta f2c689fa12 Delegate activate_action to UI thread 2021-06-09 07:19:34 -03:00
LAGonauta 839d2a5316 Initial notification provider using WinRT
Crashes when activating actions, might be related to threads.
2021-06-09 07:19:32 -03:00
LAGonauta be0e1841b8 Anitial builder 2021-06-09 07:19:32 -03:00
LAGonauta 2476b5e04b Initial experiments with notification XML building 2021-06-09 07:19:32 -03:00
LAGonauta bc9b9b95e0 Add template getter 2021-06-09 07:19:31 -03:00
LAGonauta 9d9b9e8e42 Rename plugin vala file 2021-06-09 07:19:31 -03:00
LAGonauta 0153953b5d Rename enums to better match what Vala expects 2021-06-09 07:19:30 -03:00
LAGonauta 363b200272 Add template type enum 2021-06-09 07:19:28 -03:00
LAGonauta c6a96fc025 Cleanup dismissed actions on toast notification finalizer 2021-06-09 07:19:27 -03:00
LAGonauta 898470ed23 Add failed and dimissed actions 2021-06-09 07:19:25 -03:00
LAGonauta 6cdaad315a Fields must be created in the private struct
Also change unordered_map to list, we do not need hashing and stuff.
2021-06-09 07:19:24 -03:00
LAGonauta 91d61843f2 No need to enable coroutines 2021-06-09 07:19:22 -03:00
LAGonauta c4f526329d Remove unity compilation unit 2021-06-09 07:19:21 -03:00
LAGonauta 40bf3d2fd4 Actions can stack 2021-06-09 07:19:20 -03:00
LAGonauta 7fd918f32d Fix string conversion 2021-06-09 07:19:19 -03:00
LAGonauta 1d1b00222f Add toastnotifier 2021-06-09 07:19:17 -03:00
LAGonauta 8df226ec29 Increase ref on event token 2021-06-09 07:19:15 -03:00
LAGonauta 13e0a5c0c4 Use string_view 2021-06-09 07:19:14 -03:00
LAGonauta ca0cab0e36 Initial code to allow buttons and text 2021-06-09 07:19:13 -03:00
LAGonauta ae9671716f Initial GObject wrapper for WinRT notifications
Still missing a lot of stuff
2021-06-09 07:19:11 -03:00
LAGonauta ce0deed0dc Initial callback support 2021-06-09 07:19:09 -03:00
LAGonauta 95051d304a Initial code for using winrt headers 2021-06-09 07:19:08 -03:00
LAGonauta 915dd4c738 Add MIT licensed winrt headers 2021-06-09 07:19:06 -03:00
LAGonauta 03774a3756 Fix muc invite and voide request not working 2021-06-09 07:19:05 -03:00
LAGonauta 2d63c8ae77 Rename field 2021-06-09 07:19:04 -03:00
LAGonauta 96f96ead7e Use list with all notifications 2021-06-09 07:19:04 -03:00
LAGonauta 5f2e636868 Add notification retraction 2021-06-09 07:19:03 -03:00
LAGonauta d8bb9897a4 Add support for custom actions on notification 2021-06-09 07:19:02 -03:00
LAGonauta 08f2391acc Initial plugin using new notification provider 2021-06-09 07:19:02 -03:00
LAGonauta eae628758c Use VAPI and generate template in-app 2021-06-09 07:19:01 -03:00
LAGonauta 931f09504d Added 32-bit wintoast linker library 2021-06-09 07:19:01 -03:00
LAGonauta 5702b323c9 Use dynamic linking instead of runtime loading
Also made me notice that the signature of the function with the callback was wrong. Oops.
2021-06-09 07:19:00 -03:00
LAGonauta 198bce4a84 Allow null image_path 2021-06-09 07:18:59 -03:00
LAGonauta 8553a7cd86 Add callback support 2021-06-09 07:18:59 -03:00
LAGonauta 642ed6ab1b Convert C code to Vala 2021-06-09 07:18:58 -03:00