talkatu/talkatu

Fix the input in the demo.
gtk4
2022-02-03, Gary Kramlich
1819a3f27516
Fix the input in the demo.

We had some over zealous can-focus's set to 0 which was the main issue. The
other stuff was just stuff to clean up I found along the way.

Testing Done:
Ran the demo verified I can input text. Sending is still broken but that's another matter entirely...

Reviewed at https://reviews.imfreedom.org/r/1283/
<?xml version="1.0" encoding="UTF-8"?>
<!--
Talkatu - GTK widgets for chat applications
Copyright (C) 2017-2022 Gary Kramlich <grim@reaperworld.com>
This library is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this library; if not, see <https://www.gnu.org/licenses/>.
-->
<interface>
<requires lib="gtk" version="4.0"/>
<!-- interface-license-type gplv2 -->
<!-- interface-name Pidgin -->
<!-- interface-description Internet Messenger -->
<!-- interface-copyright Pidgin Developers <devel@pidgin.im> -->
<menu id="model">
<section>
<item>
<attribute name="label" translatable="yes">_Send Message</attribute>
<attribute name="action">message.send</attribute>
</item>
</section>
</menu>
<template class="TalkatuInput" parent="TalkatuView">
<property name="extra-menu">model</property>
<signal name="notify::buffer" handler="talkatu_input_buffer_set_cb"/>
</template>
</interface>