//const GVariantType * //g_action_get_state_type (GAction *action); //Queries the type of the state of action . //If the action is stateful (e.g. created with g_simple_action_new_stateful()) then this function returns the GVariantType of the state. This is the type of the initial value given as the state. All calls to g_action_change_state() must give a GVariant of this type and g_action_get_state() will return a GVariant of the same type. //If the action is not stateful (e.g. created with g_simple_action_new()) then this function will return NULL. In that case, g_action_get_state() will return NULL and you must not call g_action_change_state(). func (v *Action) GetStateType() *glib.VariantType { c := (C.g_action_get_state_type(v.native())) p := unsafe.Pointer(c) return glib.VariantTypeFromUnsafePointer(p) }
//const GVariantType * //g_action_get_parameter_type (GAction *action); //Queries the type of the parameter that must be given when activating action . //When activating the action using g_action_activate(), the GVariant given to that function must be of the type returned by this function. //In the case that this function returns NULL, you must not give any GVariant, but NULL instead. func (v *Action) GetParameterType() *glib.VariantType { c := (C.g_action_get_parameter_type(v.native())) p := unsafe.Pointer(c) return glib.VariantTypeFromUnsafePointer(p) }