Talkatu Actions

Talkatu Actions — GAction Helpers

Functions

Types and Values

Description

A lot of Talkatu's user interation is handled by GAction's. These functions help make that easier.

Functions

talkatu_action_add_bold ()

void
talkatu_action_add_bold (GActionMap *map,
                         GtkTextBuffer *buffer);

Adds an action that will make will apply bold formatting when activated.

Parameters

map

The GActionMap to add the action to.

 

buffer

The GtkTextBuffer to add this action to.

 

talkatu_action_add_italic ()

void
talkatu_action_add_italic (GActionMap *map,
                           GtkTextBuffer *buffer);

Adds an action that will make will apply italic formatting when activated.

Parameters

map

The GActionMap to add the action to.

 

buffer

The GtkTextBuffer to add this action to.

 

talkatu_action_add_underline ()

void
talkatu_action_add_underline (GActionMap *map,
                              GtkTextBuffer *buffer);

Adds an action that will make will apply underlined formatting when activated.

Parameters

map

The GActionMap to add the action to.

 

buffer

The GtkTextBuffer to add this action to.

 

talkatu_action_add_strikethrough ()

void
talkatu_action_add_strikethrough (GActionMap *map,
                                  GtkTextBuffer *buffer);

Adds an action that will make will apply strikethrough formatting when activated.

Parameters

map

The GActionMap to add the action to.

 

buffer

The GtkTextBuffer to add this action to.

 

talkatu_action_add_grow ()

void
talkatu_action_add_grow (GActionMap *map,
                         GtkTextBuffer *buffer);

Adds an action that will make will increase the font size when activated.

Parameters

map

The GActionMap to add the action to.

 

buffer

The GtkTextBuffer to add this action to.

 

talkatu_action_add_shrink ()

void
talkatu_action_add_shrink (GActionMap *map,
                           GtkTextBuffer *buffer);

Adds an action that will make will decrease the font size when activated.

Parameters

map

The GActionMap to add the action to.

 

buffer

The GtkTextBuffer to add this action to.

 

talkatu_action_add_reset ()

void
talkatu_action_add_reset (GActionMap *map,
                          GtkTextBuffer *buffer);

Adds an action that will make remove all formatting when activated.

Parameters

map

The GActionMap to add the action to.

 

buffer

The GtkTextBuffer to add this action to.

 

talkatu_action_add_link ()

void
talkatu_action_add_link (GActionMap *map,
                         GtkTextBuffer *buffer);

Adds an action that will display an anchor link window when activated.

Parameters

map

The GActionMap to add the action to.

 

buffer

The GtkTextBuffer to add this action to.

 

talkatu_action_name_for_tag_name ()

const gchar *
talkatu_action_name_for_tag_name (const gchar *tag_name);

Looks up a GAction for the the tag named tag_name .

Parameters

tag_name

The name of the tag to lookup.

 

Returns

The GAction if one is found, otherwise NULL.

Types and Values

TALKATU_ACTION_FORMAT_BOLD

#define TALKATU_ACTION_FORMAT_BOLD          ("format-bold")

A constant that represents the bold font style action.


TALKATU_ACTION_FORMAT_ITALIC

#define TALKATU_ACTION_FORMAT_ITALIC        ("format-italic")

A constant that represents the italic font style action.


TALKATU_ACTION_FORMAT_UNDERLINE

#define TALKATU_ACTION_FORMAT_UNDERLINE     ("format-underline")

A constant that represents the underline font style action.


TALKATU_ACTION_FORMAT_STRIKETHROUGH

#define TALKATU_ACTION_FORMAT_STRIKETHROUGH ("format-strikethrough")

A constant that represents the strike through font style action.


TALKATU_ACTION_FORMAT_GROW

#define TALKATU_ACTION_FORMAT_GROW          ("format-grow")

A constant that represents the increase font size action.


TALKATU_ACTION_FORMAT_SHRINK

#define TALKATU_ACTION_FORMAT_SHRINK        ("format-shrink")

A constant that represents the decrease font size action.


TALKATU_ACTION_FORMAT_RESET

#define TALKATU_ACTION_FORMAT_RESET         ("format-reset")

A constant that represents the reset all formatting action.


TALKATU_ACTION_INSERT_LINK

#define TALKATU_ACTION_INSERT_LINK          ("insert-link")