summaryrefslogtreecommitdiff
path: root/applets/wncklet/window-list.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2017-11-14 12:21:23 +0300
committermonsta <[email protected]>2017-11-14 12:24:49 +0300
commit2b17f4f461cff056ab0f4687a9ac673a16933f7c (patch)
treed399d633a3cbc2b4a70784c130f52e637eb54af9 /applets/wncklet/window-list.c
parentf751ec74a3184fd60061ecff1bfc9992605f57b4 (diff)
downloadmate-panel-2b17f4f461cff056ab0f4687a9ac673a16933f7c.tar.bz2
mate-panel-2b17f4f461cff056ab0f4687a9ac673a16933f7c.tar.xz
wncklet: disconnect signals by data on destroy
do the same as in 4fbe8e24933d367316441166ca448cdb03c6a35f this optimizes 9f43dd5c7c37b84960d06a98a4738ee40d8bfd50
Diffstat (limited to 'applets/wncklet/window-list.c')
-rw-r--r--applets/wncklet/window-list.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/applets/wncklet/window-list.c b/applets/wncklet/window-list.c
index e3d2e208..da232447 100644
--- a/applets/wncklet/window-list.c
+++ b/applets/wncklet/window-list.c
@@ -688,22 +688,9 @@ static void display_properties_dialog(GtkAction* action, TasklistData* tasklist)
static void destroy_tasklist(GtkWidget* widget, TasklistData* tasklist)
{
+ g_signal_handlers_disconnect_by_data (G_OBJECT (tasklist->applet), tasklist);
- g_signal_handlers_disconnect_by_func(G_OBJECT(tasklist->applet),
- G_CALLBACK(applet_change_orient), tasklist);
- g_signal_handlers_disconnect_by_func(G_OBJECT(tasklist->applet),
- G_CALLBACK(applet_change_pixel_size), tasklist);
- g_signal_handlers_disconnect_by_func(G_OBJECT(tasklist->applet),
- G_CALLBACK(applet_change_background), tasklist);
- g_signal_handlers_disconnect_by_func (tasklist->settings,
- G_CALLBACK (display_all_workspaces_changed),
- tasklist);
- g_signal_handlers_disconnect_by_func (tasklist->settings,
- G_CALLBACK (group_windows_changed),
- tasklist);
- g_signal_handlers_disconnect_by_func (tasklist->settings,
- G_CALLBACK (move_unminimized_windows_changed),
- tasklist);
+ g_signal_handlers_disconnect_by_data (tasklist->settings, tasklist);
g_object_unref(tasklist->settings);