![]() |
![]() |
![]() |
Netbook Toolkit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
NbtkAction; NbtkAction * nbtk_action_new (void); NbtkAction * nbtk_action_new_full (const gchar *name, GCallback activated_cb, gpointer user_data); const gchar * nbtk_action_get_name (NbtkAction *action); void nbtk_action_set_name (NbtkAction *action, const gchar *name); gboolean nbtk_action_get_active (NbtkAction *action); void nbtk_action_set_active (NbtkAction *action, gboolean active);
Actions represent operations that the user can perform, such as items in a menu or toolbar.
typedef struct _NbtkAction NbtkAction;
The contents of this structure are private and should only be accessed through the public API.
NbtkAction * nbtk_action_new (void);
Create a new, blank, NbtkAction
Returns : |
a newly allocated NbtkAction |
NbtkAction * nbtk_action_new_full (const gchar *name, GCallback activated_cb, gpointer user_data);
Create a new NbtkAction with the name and callback set
|
name of the action |
|
callback to connect to the activated signal |
|
user data to be passed to the callback |
Returns : |
a newly allocation NbtkAction |
const gchar * nbtk_action_get_name (NbtkAction *action);
Get the name of the action
|
A NbtkAction |
Returns : |
name of the action, owned by NbtkAction |
void nbtk_action_set_name (NbtkAction *action, const gchar *name);
Set the name of the action
|
A NbtkAction |
|
new name to set |
gboolean nbtk_action_get_active (NbtkAction *action);
Get the value of the active property
|
A NbtkAction |
Returns : |
TRUE if the action is active |
void nbtk_action_set_active (NbtkAction *action, gboolean active);
Set the value of the active property
|
A NbtkAction |
|
the value to set |