Branch: refs/heads/master Author: xiota github@mentalfossa.com Committer: xiota github@mentalfossa.com Date: Mon, 06 Mar 2023 02:14:31 UTC Commit: 3c2e16a9d5834b1f153a2557ac819386481a9c2e https://github.com/geany/geany-plugins/commit/3c2e16a9d5834b1f153a2557ac8193...
Log Message: ----------- Use g_signal_handler_disconnect instead of g_clear_signal_handler
Modified Paths: -------------- geanylua/glspi_app.c
Modified: geanylua/glspi_app.c 5 lines changed, 3 insertions(+), 2 deletions(-) =================================================================== @@ -506,8 +506,9 @@ static gint glspi_keygrab(lua_State* L) } }
- /* clear callback */ - g_clear_signal_handler(&keygrab_cb_handle, main_widgets->window); + /* remove callback and clear handle */ + g_signal_handler_disconnect(main_widgets->window, keygrab_cb_handle); + keygrab_cb_handle = 0;
/* clear tooltip */ if (prompt && doc && doc->is_valid) {
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).