[nautilus] Minor cleanup
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [nautilus] Minor cleanup
- Date: Mon, 14 Dec 2009 13:13:36 +0000 (UTC)
commit 53ae0522ab2ee458eb8235beaf6c8e3afefe49b6
Author: Alexander Larsson <alexl redhat com>
Date: Mon Dec 14 10:17:06 2009 +0100
Minor cleanup
Use temporary variable to avoid casts.
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 92dee1d..7ce9f23 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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]