mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-11-05 16:04:31 +00:00
places-sidebar: disconnect the gsettings handler callback in _dispose()
The GSettings object is a global singleton, so it will always survive the sidebar; we should make sure to disconnect all the settings signal when destroying the sidebar. https://bugzilla.gnome.org/show_bug.cgi?id=646664
This commit is contained in:
parent
d4cce11671
commit
68b57af6e4
1 changed files with 4 additions and 0 deletions
|
@ -3253,6 +3253,10 @@ nautilus_places_sidebar_dispose (GObject *object)
|
|||
desktop_setting_changed_callback,
|
||||
sidebar);
|
||||
|
||||
g_signal_handlers_disconnect_by_func (nautilus_preferences,
|
||||
bookmarks_popup_menu_detach_cb,
|
||||
sidebar);
|
||||
|
||||
g_signal_handlers_disconnect_by_func (gnome_background_preferences,
|
||||
desktop_setting_changed_callback,
|
||||
sidebar);
|
||||
|
|
Loading…
Reference in a new issue