summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2009-12-17 10:31:26 +0100
committerAlexander Larsson <alexl@redhat.com>2009-12-17 10:31:26 +0100
commitaecc6b6abf1e1c313d2d4473902a2b9eb0e11827 (patch)
treec921d67c590347e15eda49abc4d91dbecabfc878
parentadc968f34c1085ce4e5378fba92655082052f13d (diff)
downloadnautilus-aecc6b6abf1e1c313d2d4473902a2b9eb0e11827.tar.gz
Minor whitespace cleanups
-rw-r--r--src/nautilus-window.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 87a0e2ce2..b1cf33e78 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -832,8 +832,7 @@ nautilus_window_set_active_pane (NautilusWindow *window,
g_assert (NAUTILUS_IS_WINDOW_PANE (new_pane));
if (new_pane->active_slot) {
nautilus_window_set_active_slot (window, new_pane->active_slot);
- }
- else if (new_pane != window->details->active_pane) {
+ } else if (new_pane != window->details->active_pane) {
real_set_active_pane (window, new_pane);
}
}
@@ -855,10 +854,9 @@ nautilus_window_set_active_slot (NautilusWindow *window, NautilusWindowSlot *new
g_assert (g_list_find (new_slot->pane->slots, new_slot) != NULL);
}
- if (NAUTILUS_IS_WINDOW_PANE (window->details->active_pane)) {
+ if (window->details->active_pane != NULL) {
old_slot = window->details->active_pane->active_slot;
- }
- else {
+ } else {
old_slot = NULL;
}
@@ -878,11 +876,11 @@ nautilus_window_set_active_slot (NautilusWindow *window, NautilusWindowSlot *new
}
/* deal with panes */
- if (new_slot && (new_slot->pane != new_slot->pane->window->details->active_pane)) {
+ if (new_slot &&
+ new_slot->pane != window->details->active_pane) {
real_set_active_pane (window, new_slot->pane);
}
-
window->details->active_pane->active_slot = new_slot;
/* make new slot active, if it exists */