![]() |
![]() |
![]() |
![]() |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkTextView ╰── TalkatuView ╰── TalkatuInput
TalkatuView handles the display of a TalkatuBuffer, the keybindings for applying formats, as well as displaying links.
GtkWidget *
talkatu_view_new (void
);
Creates a new TalkatuView with a TalkatuBuffer.
GtkWidget *
talkatu_view_new_with_buffer (GtkTextBuffer *buffer
);
Creates a new TalkatuView with buffer
.
#define TALKATU_TYPE_VIEW (talkatu_view_get_type())
The standard _get_type macro for TalkatuView.
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.
The class handler for the “format_activate” signal. |
||
The class handler for the “open_url” signal. |
typedef struct _TalkatuView TalkatuView;
A GtkTextView subclass that's preconfigured with a TalkatuBuffer.
“format-activate”
signalvoid user_function (TalkatuView *talkatutextview, char *arg1, gpointer user_data)
Emitted by the keybindings to apply a format to the underlying buffer.
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
“open-url”
signalvoid user_function (TalkatuView *talkatutextview, char *url, gpointer user_data)
Emitted when a user clicks on a link to open the url
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