Commit 914398b3 authored by Gaël Bonithon's avatar Gaël Bonithon
Browse files

windowmenu: Properly disconnect signal handler

Fixes: 185f793f
Related: #37
parent 0744457f
Pipeline #16435 passed with stages
in 3 minutes and 4 seconds
......@@ -786,13 +786,15 @@ window_menu_plugin_windows_disconnect (WindowMenuPlugin *plugin)
g_signal_handlers_disconnect_by_func (G_OBJECT (plugin->screen),
window_menu_plugin_window_opened, plugin);
/* disconnect the state changed signal from all windows */
/* disconnect from all window signals */
windows = wnck_screen_get_windows (plugin->screen);
for (li = windows; li != NULL; li = li->next)
panel_return_if_fail (WNCK_IS_WINDOW (li->data));
g_signal_handlers_disconnect_by_func (G_OBJECT (li->data),
window_menu_plugin_window_state_changed, plugin);
g_signal_handlers_disconnect_by_func (G_OBJECT (li->data),
window_menu_plugin_set_icon, plugin);
/* stop blinking */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment