From 24bb72b321c044479728fd1d43c941afc0309f18 Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Fri, 7 Oct 2016 00:02:56 -0400 Subject: Stop warnings on window-close and 3 warnings on exit Fix the gsignal warnings on window-close based on https://github.com/mate-desktop/atril/commit/fda33fbeedc0aab64d9479850047d0817d0b38be "Check if handler_id is connected before disconnect" from Atril Also Fix "Source ID XXX was not found..." warnings on closing Caja These three gsources are already gone when Caja exits, their ID's still exist but they cannot be found to remove. The warnings indicate double removal so this code block is just a source of errors. Leave it in place but commented out for now. --- src/caja-sidebar-title.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/caja-sidebar-title.c') diff --git a/src/caja-sidebar-title.c b/src/caja-sidebar-title.c index 1cd8e14c..1f2c4295 100644 --- a/src/caja-sidebar-title.c +++ b/src/caja-sidebar-title.c @@ -212,8 +212,11 @@ release_file (CajaSidebarTitle *sidebar_title) { if (sidebar_title->details->file_changed_connection != 0) { - g_signal_handler_disconnect (sidebar_title->details->file, + if (g_signal_handler_is_connected(G_OBJECT (sidebar_title->details->file), + sidebar_title->details->file_changed_connection)){ + g_signal_handler_disconnect (sidebar_title->details->file, sidebar_title->details->file_changed_connection); + } sidebar_title->details->file_changed_connection = 0; } -- cgit v1.2.1