[nautilus] window: only emit slot-removed after it has been removed from the list
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] window: only emit slot-removed after it has been removed from the list
- Date: Wed, 11 Jul 2012 20:53:07 +0000 (UTC)
commit 888d712d78398b0038824dfafaa39a84ca36e741
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Jul 11 16:28:03 2012 -0400
window: only emit slot-removed after it has been removed from the list
Or a call to nautilus_window_get_slots() in the callback for
slot-removed would still report the old slot.
src/nautilus-window.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index ebdf4e3..7b6181d 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -461,9 +461,10 @@ close_slot (NautilusWindow *window,
DEBUG ("Closing slot %p", slot);
- g_signal_emit (window, signals[SLOT_REMOVED], 0, slot);
-
nautilus_window_manage_views_close_slot (slot);
+ window->details->slots = g_list_remove (window->details->slots, slot);
+
+ g_signal_emit (window, signals[SLOT_REMOVED], 0, slot);
notebook = GTK_NOTEBOOK (window->details->notebook);
page_num = gtk_notebook_page_num (notebook, GTK_WIDGET (slot));
@@ -480,7 +481,6 @@ close_slot (NautilusWindow *window,
gtk_notebook_set_show_tabs (notebook,
gtk_notebook_get_n_pages (notebook) > 1);
- window->details->slots = g_list_remove (window->details->slots, slot);
}
NautilusWindowSlot *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]