change_entry

function change_entry(accel_path:String, accel_key:Number, accel_mods:Gdk.ModifierType, replace:Boolean):Boolean {
    // Gjs wrapper for gtk_accel_map_change_entry()
}

Changes the accel_key and accel_mods currently associated with accel_path. Due to conflicts with other accelerators, a change may not always be possible, replace indicates whether other accelerators may be deleted to resolve such conflicts. A change will only occur if all conflicts could be resolved (which might not be the case if conflicting accelerators are locked). Successful changes are indicated by a true return value.

Note that accel_path string will be stored in a GLib.Quark. Therefore, if you pass a static string, you can save some memory by interning it first with GLib.intern_static_string.

accel_path

a valid accelerator path

accel_key

the new accelerator key

accel_mods

the new accelerator modifiers

replace

true if other accelerators may be deleted upon conflicts

Returns

true if the accelerator could be changed, false otherwise