summaryrefslogtreecommitdiff
path: root/src/nautilus-window.c
diff options
context:
space:
mode:
authorAntónio Fernandes <antoniof@gnome.org>2022-09-01 21:10:47 +0100
committerAntónio Fernandes <antoniof@gnome.org>2022-09-01 23:09:29 +0100
commit0782b7cdd210ba69e0e4343f0b5673bfe55bf4d0 (patch)
treed6c4b470f171d4e7d043c7722f789d21d9aa386e /src/nautilus-window.c
parent50e3f19587a115eb0b58ea381efa354e918503ac (diff)
downloadnautilus-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.c3
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));