| Top |
| GSimpleActionGroup * | talkatu_action_group_new () |
| GtkTextBuffer * | talkatu_action_group_get_buffer () |
| void | talkatu_action_group_enable_action () |
| const gchar * | talkatu_action_name_for_tag_name () |
| void | talkatu_action_group_activate_format () |
| gboolean | talkatu_action_group_get_action_activated () |
| gchar ** | talkatu_action_group_get_activated_formats () |
| #define | TALKATU_ACTION_FORMAT_BOLD |
| #define | TALKATU_ACTION_FORMAT_ITALIC |
| #define | TALKATU_ACTION_FORMAT_UNDERLINE |
| #define | TALKATU_ACTION_FORMAT_STRIKETHROUGH |
| #define | TALKATU_ACTION_FORMAT_GROW |
| #define | TALKATU_ACTION_FORMAT_SHRINK |
| #define | TALKATU_ACTION_FORMAT_RESET |
| #define | TALKATU_ACTION_INSERT_LINK |
A lot of Talkatu's user interation is handled by GAction's. These functions help make that easier.
GSimpleActionGroup *
talkatu_action_group_new (GtkTextBuffer *buffer);
Creates a new TalkatuActionGroup bound to buffer
.
GtkTextBuffer *
talkatu_action_group_get_buffer (TalkatuActionGroup *ag);
TalkatuActionGroup's are bound to a specific GtkTextBuffer. This function
return the one that ag
is bound to.
void talkatu_action_group_enable_action (TalkatuActionGroup *ag,const gchar *name);
By default a TalkatuActionGroup's actions are all disabled. To enable them you must call this function one at time.
const gchar *
talkatu_action_name_for_tag_name (const gchar *tag_name);
Looks up a GAction for the the tag named tag_name
.
void talkatu_action_group_activate_format (TalkatuActionGroup *ag,const gchar *format_name);
Activates action named format_name
. This will apply it to a selection if
there is one.
gboolean talkatu_action_group_get_action_activated (TalkatuActionGroup *ag,const gchar *name);
Returns that state of the action named name
. If name
doesn't exist or is
not a toggle action, FALSE is returned.
gchar **
talkatu_action_group_get_activated_formats
(TalkatuActionGroup *ag);
Returns an array of all actions that are activated. This values must be free'd with g_strfreev.
#define TALKATU_ACTION_FORMAT_BOLD ("format-bold")
A constant that represents the bold font style action.
#define TALKATU_ACTION_FORMAT_ITALIC ("format-italic")
A constant that represents the italic font style action.
#define TALKATU_ACTION_FORMAT_UNDERLINE ("format-underline")
A constant that represents the underline font style action.
#define TALKATU_ACTION_FORMAT_STRIKETHROUGH ("format-strikethrough")
A constant that represents the strike through font style action.
#define TALKATU_ACTION_FORMAT_GROW ("format-grow")
A constant that represents the increase font size action.
#define TALKATU_ACTION_FORMAT_SHRINK ("format-shrink")
A constant that represents the decrease font size action.
#define TALKATU_ACTION_FORMAT_RESET ("format-reset")
A constant that represents the reset all formatting action.
“buffer” property“buffer” GtkTextBuffer *
The buffer to work on.
Owner: TalkatuActionGroup
Flags: Read / Write / Construct Only
“action-activated” signalvoid user_function (TalkatuActionGroup *talkatuactiongroup, GAction *arg1, char *user_data, gpointer user_data)
Emitted when one of the actions in talkatuactiongroup
are activated.
This is a convenience signal so people don't have to connect to every
action themselves.
talkatuactiongroup |
The TalkatuActionGroup instance. |
|
arg1 |
The GAction that was activated. |
|
user_data |
User supplied data. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Action