add_signal_from_string
function add_signal_from_string(binding_set:Gtk.BindingSet, signal_desc:String):GLib.TokenType { // Gjs wrapper for gtk_binding_entry_add_signal_from_string() }
Parses a signal description from signal_desc and incorporates it into binding_set.
Signal descriptions may either bind a key combination to one or more signals: <informalexample><programlisting> bind "key" { "signalname" (param, ...) ... } </programlisting></informalexample>
Or they may also unbind a key combination: <informalexample><programlisting> unbind "key" </programlisting></informalexample>
Key combinations must be in a format that can be parsed by accelerator_parse.
Since 3.0
- binding_set
- signal_desc
a signal description
- Returns
GLib.TokenType.none if the signal was successfully parsed and added, the expected token otherwise