mjk
1698d15f7d
silence enum stringification warnings by first casting to underlying types
2021-06-09 07:20:02 -03:00
mjk
8f8dfa2e70
move module loading functions out of shortcutcreator.cpp
2021-06-09 07:20:02 -03:00
mjk
f1bcb6604f
rewrite InitApartment and protect callers from (the rest of the) exceptions
...
Initializing COM by calling `winrt::init_apartment()` would always cause
stack unwinding *in practice*, which is suboptimal at best, and even using
`apartment_type::single_threaded` still would require exception filtering
*just in case*.
2021-06-09 07:20:01 -03:00
mjk
c855d5e7cb
protect GetTemplateContent callers from exceptions
2021-06-09 07:20:00 -03:00
mjk
ed7c23c8d2
generalize glib::try_invoke to any return-by-value type and void
2021-06-09 07:19:59 -03:00
mjk
b1cb64d716
add nullary version of g_try_invoke macro
2021-06-09 07:19:58 -03:00
mjk
39b51b2d4c
make glib::impl::varstring less explosive
2021-06-09 07:19:57 -03:00
mjk
7cb6b3f4b3
fix UB in glib::describe_arguments called with no arguments
...
Makes failure logging of nullary invokables non-crashy.
2021-06-09 07:19:56 -03:00
mjk
c44b1daaf7
make meta-error messages more precise
2021-06-09 07:19:54 -03:00
mjk
5e50d1d2d7
remove an unused include
2021-06-09 07:19:53 -03:00
mjk
229ff697c4
move some whitespace around
2021-06-09 07:19:50 -03:00
mjk
fd035084de
unimplement accidentally implemented wide string overloads of describe_argument
2021-06-09 07:19:47 -03:00
mjk
eeda464ca9
rewrite shortcut management code with RAII, error logging and exceptions
...
It actually works now.
2021-06-09 07:19:43 -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
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
bc9b9b95e0
Add template getter
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
898470ed23
Add failed and dimissed actions
2021-06-09 07:19:25 -03:00
LAGonauta
40bf3d2fd4
Actions can stack
2021-06-09 07:19:20 -03:00
LAGonauta
1d1b00222f
Add toastnotifier
2021-06-09 07:19:17 -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