GObject.Object::notify

connect('notify', function (object, pspec: GObject.ParamSpec, ): void);
  

The notify signal is emitted on an object when one of its properties has been changed. Note that getting this signal doesn't guarantee that the value of the property has actually changed, it may also be emitted when the setter for the property is called to reinstate the previous value.

This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the g_signal_connect() call, like this: |[<!-- language="C" --> g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view) ]| It is important to note that you must use [canonical][canonical-parameter-name] parameter names as detail strings for the notify signal.

object

instance of GObject.Object that is emitting the signal

pspec

the GObject.ParamSpec of the property which changed.