History View

History View — Chat history widget

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkContainer
                ╰── GtkListBox
                    ╰── TalkatuHistory

Implemented Interfaces

TalkatuHistory implements AtkImplementorIface and GtkBuildable.

Description

This widget is used to display the conversation history. It doesn't care if it is multi user or one to one.

Functions

talkatu_history_new ()

GtkWidget *
talkatu_history_new (void);

Creates a new TalkatuHistory for displaying chat history.

Returns

The new TalkatuHistory instance.

[transfer full]

talkatu_history_write_message ()

void
talkatu_history_write_message (TalkatuHistory *history,
                               TalkatuMessage *message);

Adds message to history . Messages are sorted by timestamp so make sure it is set correctly.

Parameters

history

The TalkatuHistory instance.

 

message

The TalkatuMessage to add to history .

 

Types and Values

TALKATU_TYPE_HISTORY

#define TALKATU_TYPE_HISTORY (talkatu_history_get_type())

The standard _get_type macro for TalkatuHistory.

TalkatuHistory

typedef struct _TalkatuHistory TalkatuHistory;

A TalkatuView subclass that is used to display a conversation.