Text View

Text View — Widget that displays a TalkatuBuffer

Functions

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkContainer
                ╰── GtkTextView
                    ╰── TalkatuView
                        ╰── TalkatuInput

Implemented Interfaces

TalkatuView implements AtkImplementorIface, GtkBuildable and GtkScrollable.

Description

TalkatuView handles the display of a TalkatuBuffer, the keybindings for applying formats, as well as displaying links.

Functions

talkatu_view_new ()

GtkWidget *
talkatu_view_new (void);

Creates a new TalkatuView with a TalkatuBuffer.

Returns

The new TalkatuView.

[transfer full]

talkatu_view_new_with_buffer ()

GtkWidget *
talkatu_view_new_with_buffer (GtkTextBuffer *buffer);

Creates a new TalkatuView with buffer .

Parameters

buffer

A GtkTextBuffer.

 

Returns

The new TalkatuView.

[transfer full]

Types and Values

TALKATU_TYPE_VIEW

#define TALKATU_TYPE_VIEW            (talkatu_view_get_type())

The standard _get_type macro for TalkatuView.

struct TalkatuViewClass

struct TalkatuViewClass {
	void (*format_activate)(TalkatuView *view, const gchar *action_name);

	void (*open_url)(TalkatuView *view, const gchar *url);
};

The backing class to TalkatuView instances.

Members

format_activate ()

The class handler for the “format_activate” signal.

 

open_url ()

The class handler for the “open_url” signal.

 

TalkatuView

typedef struct _TalkatuView TalkatuView;

A GtkTextView subclass that's preconfigured with a TalkatuBuffer.

Signal Details

The “format-activate” signal

void
user_function (TalkatuView *talkatutextview,
               char        *arg1,
               gpointer     user_data)

Emitted by the keybindings to apply a format to the underlying buffer.

Parameters

talkatutextview

The TalkatuView instance.

 

arg1

The name of the action to activated.

 

user_data

User supplied data.

 

user_data

user data set when the signal handler was connected.

 

Flags: Action

The “open-url” signal

void
user_function (TalkatuView *talkatutextview,
               char        *url,
               gpointer     user_data)

Emitted when a user clicks on a link to open the url

Parameters

talkatutextview

The TalkatuView instances.

 

url

The URL to open.

 

user_data

User supplied data.

 

user_data

user data set when the signal handler was connected.

 

Flags: Action