diff options
author | Alexander Larsson <alexl@redhat.com> | 2009-12-14 10:17:06 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2009-12-14 10:17:06 +0100 |
commit | 53ae0522ab2ee458eb8235beaf6c8e3afefe49b6 (patch) | |
tree | e70209f2a7a776d49b9ab6c14be8f8f54e2ace9a | |
parent | 451aafee60cd171650993c5b7640116319eebc9e (diff) | |
download | nautilus-53ae0522ab2ee458eb8235beaf6c8e3afefe49b6.tar.gz |
Minor cleanup
Use temporary variable to avoid casts.
-rw-r--r-- | src/nautilus-navigation-window.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nautilus-navigation-window.c b/src/nautilus-navigation-window.c index 92dee1dc4..7ce9f2372 100644 --- a/src/nautilus-navigation-window.c +++ b/src/nautilus-navigation-window.c @@ -741,6 +741,7 @@ real_sync_title (NautilusWindow *window, NautilusWindowSlot *slot) { NautilusNavigationWindow *navigation_window; + NautilusNavigationWindowPane *pane; NautilusNotebook *notebook; char *full_title; char *window_title; @@ -759,11 +760,12 @@ real_sync_title (NautilusWindow *window, g_free (full_title); } - notebook = NAUTILUS_NOTEBOOK (NAUTILUS_NAVIGATION_WINDOW_PANE (slot->pane)->notebook); + pane = NAUTILUS_NAVIGATION_WINDOW_PANE (slot->pane); + notebook = NAUTILUS_NOTEBOOK (pane->notebook); nautilus_notebook_sync_tab_label (notebook, slot); if (slot->pane->is_active) { - nautilus_navigation_window_pane_sync_tab_menu_title (NAUTILUS_NAVIGATION_WINDOW_PANE (slot->pane), slot); + nautilus_navigation_window_pane_sync_tab_menu_title (pane, slot); } } |