summaryrefslogtreecommitdiff
path: root/applets/wncklet/workspace-switcher.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/workspace-switcher.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/workspace-switcher.c')
-rw-r--r--applets/wncklet/workspace-switcher.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/applets/wncklet/workspace-switcher.c b/applets/wncklet/workspace-switcher.c
index 05ca4432..cdeca09c 100644
--- a/applets/wncklet/workspace-switcher.c
+++ b/applets/wncklet/workspace-switcher.c
@@ -961,18 +961,8 @@ static void display_properties_dialog(GtkAction* action, PagerData* pager)
static void destroy_pager(GtkWidget* widget, PagerData* pager)
{
- g_signal_handlers_disconnect_by_func (pager->settings,
- G_CALLBACK (num_rows_changed),
- pager);
- g_signal_handlers_disconnect_by_func (pager->settings,
- G_CALLBACK (display_workspace_names_changed),
- pager);
- g_signal_handlers_disconnect_by_func (pager->settings,
- G_CALLBACK (all_workspaces_changed),
- pager);
- g_signal_handlers_disconnect_by_func (pager->settings,
- G_CALLBACK (wrap_workspaces_changed),
- pager);
+ g_signal_handlers_disconnect_by_data (pager->settings, pager);
+
g_object_unref (pager->settings);
if (pager->properties_dialog)