[nautilus/gnome-3-20] window-slot: only create x-content-bar if necessary
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/gnome-3-20] window-slot: only create x-content-bar if necessary
- Date: Mon, 7 Mar 2016 11:27:10 +0000 (UTC)
commit a974938cb40cc18ac1ef6921c84dacdf0037b773
Author: Carlos Soriano <csoriano gnome org>
Date: Mon Mar 7 11:52:45 2016 +0100
window-slot: only create x-content-bar if necessary
We were creating the x-content-bar every time, then the content bar
was destroying itself (?) if no content type could be handled.
Just avoid to create the content bar if no necessary.
https://bugzilla.gnome.org/show_bug.cgi?id=762703
src/nautilus-window-slot.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c
index 54a5e6c..c12453b 100644
--- a/src/nautilus-window-slot.c
+++ b/src/nautilus-window-slot.c
@@ -1877,6 +1877,9 @@ nautilus_window_slot_show_x_content_bar (NautilusWindowSlot *slot, GMount *mount
g_assert (NAUTILUS_IS_WINDOW_SLOT (slot));
+ if (!should_handle_content_types (x_content_types))
+ return;
+
bar = nautilus_x_content_bar_new (mount, x_content_types);
gtk_widget_show (bar);
nautilus_window_slot_add_extra_location_widget (slot, bar);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]