[nautilus] slot: simplify code
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] slot: simplify code
- Date: Mon, 8 Apr 2013 23:09:51 +0000 (UTC)
commit e9df191ba85803b3ef5ab74cb7b47d24706037aa
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Apr 8 18:40:03 2013 -0400
slot: simplify code
Reuse a helper we already have for this condition.
src/nautilus-window-slot.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c
index 91e42ab..7b36872 100644
--- a/src/nautilus-window-slot.c
+++ b/src/nautilus-window-slot.c
@@ -1382,9 +1382,7 @@ create_content_view (NautilusWindowSlot *slot,
view_id = NAUTILUS_DESKTOP_ICON_VIEW_IID;
}
- if (slot->details->content_view != NULL &&
- g_strcmp0 (nautilus_view_get_view_id (slot->details->content_view),
- view_id) == 0) {
+ if (nautilus_window_slot_content_view_matches_iid (slot, view_id)) {
/* reuse existing content view */
view = slot->details->content_view;
slot->details->new_content_view = view;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]