From 8d8d249e3983d4ce070f317f1957ad42d59052df Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Fri, 25 Oct 2019 08:49:36 +0200 Subject: Add tune instance for GSignalHandler (convenience) --- src/Gtk/Signal.icl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Gtk/Signal.icl') diff --git a/src/Gtk/Signal.icl b/src/Gtk/Signal.icl index 55aca6d..6780ae9 100644 --- a/src/Gtk/Signal.icl +++ b/src/Gtk/Signal.icl @@ -45,6 +45,10 @@ instance tune w SignalHandler | gtkWidget w where tune (SignalHandler handler) widget = installSignalHandler handler widget +instance tune w GSignalHandler | gtkWidget w +where + tune handler widget = installSignalHandler handler widget + // NB: low-level hacking to use and modify the GtkState from within callbacks. // We use a CAF to keep track of the state. In runGtk, the state is saved with // saveState. This state is retrieved with retrieveState there (to check -- cgit v1.2.3