talkatu/talkatu

Fix some warnings in the demo window

14 months ago, Gary Kramlich
d33e62d82322
Parents 1b24f2b4bf2b
Children 288b931c8ca2
Fix some warnings in the demo window

Testing Done:
Compiled and verified the warnings were gone.

Reviewed at https://reviews.imfreedom.org/r/2265/
--- a/demo/talkatudemowindow.c Thu Feb 23 05:55:51 2023 -0600
+++ b/demo/talkatudemowindow.c Thu Feb 23 21:19:59 2023 -0600
@@ -279,9 +279,17 @@
static void
talkatu_demo_window_init(TalkatuDemoWindow *window) {
const GActionEntry entries[] = {
- { "author-name", talkatu_demo_window_author_changed, "s", "'Alice'" },
- { "author-name-color", talkatu_demo_window_author_name_color_changed,
- "s", "'black'" }
+ {
+ .name = "author-name",
+ .activate = talkatu_demo_window_author_changed,
+ .parameter_type = "s",
+ .state = "'Alice'",
+ }, {
+ .name = "author-name-color",
+ .activate = talkatu_demo_window_author_name_color_changed,
+ .parameter_type = "s",
+ .state = "'black'",
+ }
};
g_action_map_add_action_entries(G_ACTION_MAP(window), entries,