--- a/demo/data/demo.ui Wed Feb 02 03:11:10 2022 -0600
+++ b/demo/data/demo.ui Thu Feb 03 20:20:40 2022 -0600
@@ -26,7 +26,6 @@
<!-- interface-description GTK widgets for chat applications -->
<!-- interface-copyright Gary Kramlich <grim@reaperworld.com> -->
<template class="TalkatuDemoWindow" parent="GtkApplicationWindow">
- <property name="can-focus">0</property>
<object class="GtkPaned">
<property name="shrink-end-child">0</property>
@@ -35,11 +34,9 @@
<property name="wide-handle">1</property>
<object class="TalkatuScrolledWindow">
- <property name="can-focus">1</property>
<object class="TalkatuHistory" id="history">
<property name="name">history</property>
- <property name="can-focus">1</property>
<property name="hexpand-set">True</property>
<property name="vexpand-set">True</property>
@@ -48,7 +45,6 @@
- <property name="can-focus">0</property>
<property name="orientation">vertical</property>
@@ -208,7 +204,6 @@
<property name="vexpand">1</property>
<property name="orientation">vertical</property>
<property name="visible">True</property>
- <property name="hexpand-set">True</property>
<property name="vexpand-set">True</property>
<child internal-child="toolbar">
<object class="TalkatuToolbar">
@@ -218,10 +213,9 @@
<child internal-child="input">
<object class="TalkatuInput">
- <property name="hexpand-set">True</property>
- <property name="vexpand-set">True</property>
<property name="buffer">buffer_plain</property>
<property name="author">Alice</property>
+ <property name="send-binding">1</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"/>
--- a/talkatu/data/input.ui Wed Feb 02 03:11:10 2022 -0600
+++ b/talkatu/data/input.ui Thu Feb 03 20:20:40 2022 -0600
@@ -32,8 +32,6 @@
<template class="TalkatuInput" parent="TalkatuView">
- <property name="editable">1</property>
- <property name="cursor-visible">1</property>
<property name="extra-menu">model</property>
<signal name="notify::buffer" handler="talkatu_input_buffer_set_cb"/>
--- a/talkatu/talkatuinput.c Wed Feb 02 03:11:10 2022 -0600
+++ b/talkatu/talkatuinput.c Thu Feb 03 20:20:40 2022 -0600
@@ -67,11 +67,6 @@
TalkatuInputSendBinding send_binding;
- /* this mark is used to keep track of our context for the context menu. It
- * is updated via cursor-moved and button-press callbacks.
- GtkTextMark *context_mark;
/* TalkatuMessage properties: content type and contents are derived from
@@ -386,17 +381,8 @@
talkatu_input_buffer_set_cb(GObject *view, GParamSpec *pspec, gpointer data) {
- TalkatuInputPrivate *priv = NULL;
TalkatuInput *input = TALKATU_INPUT(view);
GtkTextBuffer *buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(view));
- priv = talkatu_input_get_instance_private(input);
- /* grab our context_mark */
- gtk_text_buffer_get_start_iter(buffer, &start);
- priv->context_mark = gtk_text_buffer_create_mark(buffer, NULL, &start,
if(TALKATU_IS_BUFFER(buffer)) {
GSimpleActionGroup *ag = NULL;
--- a/talkatu/talkatuview.c Wed Feb 02 03:11:10 2022 -0600
+++ b/talkatu/talkatuview.c Thu Feb 03 20:20:40 2022 -0600
@@ -358,8 +358,5 @@
* Returns: (transfer full): The new #TalkatuView.
GtkWidget *talkatu_view_new_with_buffer(GtkTextBuffer *buffer) {
- return GTK_WIDGET(g_object_new(
+ return g_object_new(TALKATU_TYPE_VIEW, "buffer", buffer, NULL); --- a/talkatu/talkatuview.h Wed Feb 02 03:11:10 2022 -0600
+++ b/talkatu/talkatuview.h Thu Feb 03 20:20:40 2022 -0600
@@ -30,8 +30,7 @@
-#define TALKATU_TYPE_VIEW (talkatu_view_get_type())
+#define TALKATU_TYPE_VIEW (talkatu_view_get_type()) G_DECLARE_DERIVABLE_TYPE(TalkatuView, talkatu_view, TALKATU, VIEW, GtkTextView)
struct _TalkatuViewClass {