summaryrefslogtreecommitdiff
path: root/src/nautilus-window.c
diff options
context:
space:
mode:
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2015-07-29 19:47:03 -0300
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2015-07-31 12:43:53 -0300
commit9127de70bc33618f633460502a0c6a44e7784494 (patch)
treea0165b1ca7052b53e1b200d47a8cd038fa1231e6 /src/nautilus-window.c
parentead1970bce544ffa4a8eba3dc0c71eb594c6c2c3 (diff)
downloadnautilus-9127de70bc33618f633460502a0c6a44e7784494.tar.gz
window: remove old hackwip/gbsneto/cleanups
NautilusWindow immediately displays the newly opened tab or window and, for that to happen correctly, an old hack is present. This hack, however, added some unecessary complexity to NautilusWindow code, and is completely obsolete nowadays. It was needed to fix bug 679640, but seems like the real cause of the bug was fixed and this hack does nothing, appearently. Remove the old hack and lets see if will continue to behave properly.
Diffstat (limited to 'src/nautilus-window.c')
-rw-r--r--src/nautilus-window.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 1b8d9d04f..48c0c350e 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -2253,27 +2253,6 @@ nautilus_window_view_visible (NautilusWindow *window,
g_return_if_fail (NAUTILUS_IS_WINDOW (window));
- /* FIXME: this code is odd and should not really be needed, but
- * removing it causes bugs, see e.g.
- * https://bugzilla.gnome.org/show_bug.cgi?id=679640
- *
- * Needs more investigation...
- */
- slot = nautilus_view_get_nautilus_window_slot (view);
- if (g_object_get_data (G_OBJECT (slot), "nautilus-window-view-visible") != NULL) {
- return;
- }
-
- g_object_set_data (G_OBJECT (slot), "nautilus-window-view-visible", GINT_TO_POINTER (1));
-
- /* Look for other non-visible slots */
- for (l = window->priv->slots; l != NULL; l = l->next) {
- slot = l->data;
- if (g_object_get_data (G_OBJECT (slot), "nautilus-window-view-visible") == NULL) {
- return;
- }
- }
-
/* Look for other non-visible slots */
for (l = window->priv->slots; l != NULL; l = l->next) {
slot = l->data;