Method
Gtk.Expression.watch
Declaration [src]
GtkExpressionWatch*
gtk_expression_watch (
GtkExpression* self,
GObject* this_,
GtkExpressionNotify notify,
gpointer user_data,
GDestroyNotify user_destroy
)
Description [src]
Installs a watch for the given expression
that calls the notify
function
whenever the evaluation of self
may have changed.
GTK cannot guarantee that the evaluation did indeed change when the notify
gets invoked, but it guarantees the opposite: When it did in fact change,
the notify
will be invoked.
Parameters
this_ |
GObject* |
the |
|
Can be NULL | |
Ownership is not transferred to the callee | |
notify |
GtkExpressionNotify |
callback to invoke when the expression changes |
|
user_data |
gpointer |
user data to pass to the |
|
user_destroy |
GDestroyNotify |
destroy notify for |
Return value
Returns: GtkExpressionWatch |
|
The newly installed watch. Note that the only
reference held to the watch will be released when the watch is unwatched
which can happen automatically, and not just via
|
|
Ownership is not transferred to the caller |