| Top |
Use GladeWidgetAction to create custom routines to operate on widgets you add to glade, when running GladeActionActivateFunc functions you should make sure to use GladeCommand.
GWActionClass *
glade_widget_action_class_clone (GWActionClass *action);
void glade_widget_action_set_sensitive (GladeWidgetAction *action,gboolean sensitive);
Set whether or not this action is sensitive.
struct GWActionClass {
const gchar *id; /* The identifier of this action in the action tree */
gchar *path; /* Full action path */
gchar *label; /* A translated label to show in the UI for this action */
gchar *stock; /* If set, this stock item will be shown in the UI along side
* the label */
gboolean important; /* If this action is important */
GList *actions;/* Recursive list of child actions */
};
“class” property“class” gpointer
GladeWidgetActionClass structure pointer.
Owner: GladeWidgetAction
Flags: Write / Construct Only
“sensitive” property“sensitive” gboolean
Whether this action is sensitive.
Owner: GladeWidgetAction
Flags: Read / Write
Default value: TRUE
“visible” property“visible” gboolean
Whether this action is visible.
Owner: GladeWidgetAction
Flags: Read / Write
Default value: TRUE