You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notice that _both_ of the callback functions executed!
54
-
Gtk+ allows you to define multiple signal handlers for a given object; even the execution order can be [specified](https://developer.gnome.org/gobject/stable/gobject-Signals.html#gobject-Signals.description).
55
-
Callbacks for some [signals](https://developer.gnome.org/gtk3/stable/GtkWidget.html#GtkWidget-accel-closures-changed) require that you return an `Int32`, with value 0 if you want the next handler to run or 1 if you want to prevent any other handlers from running on this event.
54
+
Gtk+ allows you to define multiple signal handlers for a given object; even the execution order can be [specified](https://docs.gtk.org/gobject/concepts.html#signals).
55
+
Callbacks for some [signals](https://docs.gtk.org/gtk3/signal.Widget.accel-closures-changed.html) require that you return an `Int32`, with value 0 if you want the next handler to run or 1 if you want to prevent any other handlers from running on this event.
56
56
57
-
The [`"clicked"` signal callback](https://developer.gnome.org/gtk3/stable/GtkButton.html#GtkButton-clicked) should return `nothing` (`void` in C parlance), so you can't prevent other callbacks from running.
57
+
The [`"clicked"` signal callback](https://docs.gtk.org/gtk3/method.Button.clicked.html) should return `nothing` (`void` in C parlance), so you can't prevent other callbacks from running.
58
58
However, we can disconnect the first signal handler:
59
59
```julia
60
60
signal_handler_disconnect(b, id)
@@ -75,7 +75,7 @@ id = signal_connect(b, "button-press-event") do widget, event
75
75
end
76
76
```
77
77
Note that this signal requires two arguments, here `widget` and `event`, and that `event` contained useful information.
78
-
Arguments and their meaning are described along with their corresponding [signals](https://developer.gnome.org/gtk3/stable/GtkWidget.html#GtkWidget-accel-closures-changed).
78
+
Arguments and their meaning are described along with their corresponding [signals](https://docs.gtk.org/gtk3/signal.Widget.accel-closures-changed.html).
79
79
**You should omit the final `user_data` argument described in the Gtk documentation**;
80
80
keep in mind that you can always address other variables from inside your function block, or define the callback in terms of an anonymous function:
0 commit comments