diff options
author | António Fernandes <antoniof@gnome.org> | 2022-09-01 21:10:47 +0100 |
---|---|---|
committer | António Fernandes <antoniof@gnome.org> | 2022-09-01 23:09:29 +0100 |
commit | 0782b7cdd210ba69e0e4343f0b5673bfe55bf4d0 (patch) | |
tree | d6c4b470f171d4e7d043c7722f789d21d9aa386e /src/nautilus-window.c | |
parent | 50e3f19587a115eb0b58ea381efa354e918503ac (diff) | |
download | nautilus-0782b7cdd210ba69e0e4343f0b5673bfe55bf4d0.tar.gz |
toolbar: Drop :window property
Toolbar holds a reference to the window, which owns the toolbar.
This reference cycle is problematic, so drop the property and just
peek the window by walking up the hierarchy.
Long term we should just dismantle NautilusToolbar completely, by
moving most logic to each their respective control and manage
everything from NautilusWindow.
Diffstat (limited to 'src/nautilus-window.c')
-rw-r--r-- | src/nautilus-window.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/nautilus-window.c b/src/nautilus-window.c index eb6bec176..5e1f9d9a5 100644 --- a/src/nautilus-window.c +++ b/src/nautilus-window.c @@ -1350,9 +1350,6 @@ setup_toolbar (NautilusWindow *window) GtkWidget *path_bar; GtkWidget *location_entry; - - g_object_set (window->toolbar, "window", window, NULL); - /* connect to the pathbar signals */ path_bar = nautilus_toolbar_get_path_bar (NAUTILUS_TOOLBAR (window->toolbar)); |