talkatu/talkatu

Parents 7baf8643ecb6
Children 1819a3f27516
Update the demo to default the author to Alice and add a keybinding for ctrl-w

Testing Done:
Ran the demo and verified the author was set and that ctrl-w closed the window and therefore the application.

Reviewed at https://reviews.imfreedom.org/r/1281/
--- a/demo/data/demo.ui Wed Feb 02 02:55:48 2022 -0600
+++ b/demo/data/demo.ui Wed Feb 02 03:11:10 2022 -0600
@@ -221,6 +221,7 @@
<property name="hexpand-set">True</property>
<property name="vexpand-set">True</property>
<property name="buffer">buffer_plain</property>
+ <property name="author">Alice</property>
<signal name="open-url" handler="talkatu_demo_window_view_open_url_cb" object="TalkatuDemoWindow" swapped="no"/>
<signal name="send-message" handler="talkatu_demo_window_view_send_message_cb" object="TalkatuDemoWindow" swapped="no"/>
</object>
--- a/demo/talkatudemowindow.c Wed Feb 02 02:55:48 2022 -0600
+++ b/demo/talkatudemowindow.c Wed Feb 02 03:11:10 2022 -0600
@@ -337,6 +337,10 @@
gtk_widget_class_bind_template_callback(widget_class, talkatu_demo_window_insert_html_cb);
gtk_widget_class_bind_template_callback(widget_class, talkatu_demo_window_insert_markdown_cb);
+
+ gtk_widget_class_add_binding_action(widget_class,
+ GDK_KEY_w, GDK_CONTROL_MASK,
+ "window.close", NULL);
}
/******************************************************************************