Editor

Editor — A simple editor composed of other Talkatu Widgets

Functions

Properties

GtkTextBuffer * buffer Read / Write / Construct
gboolean show-send-button Read / Write / Construct
gboolean show-toolbar Read / Write / Construct
TalkatuToolbar * toolbar Read
TalkatuView * view Read

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkContainer
                ╰── GtkBox
                    ╰── TalkatuEditor

Implemented Interfaces

TalkatuEditor implements AtkImplementorIface, GtkBuildable and GtkOrientable.

Description

TalkatuEditor is a composite widget of TalkatuToolbar and TalkatuView to help make them easier to use.

Functions

talkatu_editor_new ()

GtkWidget *
talkatu_editor_new (void);

Creates a new TalkatuEditor with a normal GtkTextBuffer.

Returns

The new TalkatuEditor instance.

[transfer full]


talkatu_editor_get_toolbar ()

GtkWidget *
talkatu_editor_get_toolbar (TalkatuEditor *editor);

Gets the TalkatuToolbar that editor is using.

Parameters

editor

The TalkatuEditor instance.

 

Returns

The TalkatuToolbar that editor is using.

[transfer none]


talkatu_editor_set_toolbar_visible ()

void
talkatu_editor_set_toolbar_visible (TalkatuEditor *editor,
                                    gboolean visible);

Makes the toolbar visible if visible is TRUE otherwise hides it.

Parameters

editor

The TalkatuEditor instance.

 

visible

Whether or not the toolbar should be visible.

 

talkatu_editor_get_toolbar_visible ()

gboolean
talkatu_editor_get_toolbar_visible (TalkatuEditor *editor);

Returns whether or not the toolbar is visible.

Parameters

editor

The TalkatuEditor instance.

 

Returns

TRUE if the toolbar is visible, FALSE otherwise.


talkatu_editor_get_view ()

GtkWidget *
talkatu_editor_get_view (TalkatuEditor *editor);

Gets the TalkatuView that editor is using.

Parameters

editor

The TalkatuEditor instance.

 

Returns

The TalkatuView that editor is using.

[transfer none]


talkatu_editor_get_buffer ()

GtkTextBuffer *
talkatu_editor_get_buffer (TalkatuEditor *editor);

Gets the GtkTextBuffer for the internal view.

Parameters

editor

The TalkatuEditor instance.

 

Returns

The GtkTextBuffer for the internal view.

[transfer none]


talkatu_editor_set_buffer ()

void
talkatu_editor_set_buffer (TalkatuEditor *editor,
                           GtkTextBuffer *buffer);

Sets the GtkTextBuffer for the internal view to buffer .

Parameters

editor

The TalkatuEditor instance.

 

buffer

A new GtkTextBuffer to use.

 

talkatu_editor_get_send_button_visible ()

gboolean
talkatu_editor_get_send_button_visible
                               (TalkatuEditor *editor);

Returns whether or not the send button is visible.

Parameters

editor

The TalkatuEditor instance.

 

Returns

TRUE if the send button is visible, FALSE otherwise.


talkatu_editor_set_send_button_visible ()

void
talkatu_editor_set_send_button_visible
                               (TalkatuEditor *editor,
                                gboolean visible);

Sets the visibility of the send button depending on visible .

Parameters

editor

The TalkatuEditor instance.

 

visible

Whether or not the send button should be visible.

 

Types and Values

TALKATU_TYPE_EDITOR

#define TALKATU_TYPE_EDITOR (talkatu_editor_get_type())

The standard _get_type macro for TalkatuEditor.


TalkatuEditor

typedef struct _TalkatuEditor TalkatuEditor;

A composite widget that contains a TalkatuToolbar, TalkatuView, and an optional send button in the common instant messaging input layout.

Property Details

The “buffer” property

  “buffer”                   GtkTextBuffer *

The GtkTextBuffer for the view.

Flags: Read / Write / Construct


The “show-send-button” property

  “show-send-button”         gboolean

Whether or not to show the send button.

Flags: Read / Write / Construct

Default value: FALSE


The “show-toolbar” property

  “show-toolbar”             gboolean

Whether or not to show the toolbar.

Flags: Read / Write / Construct

Default value: TRUE


The “toolbar” property

  “toolbar”                  TalkatuToolbar *

The toolbar widget.

Flags: Read


The “view” property

  “view”                     TalkatuView *

The view widget.

Flags: Read