[nautilus] application: use target_slot window if available
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] application: use target_slot window if available
- Date: Thu, 10 Sep 2015 18:20:08 +0000 (UTC)
commit 84ee42db70e5d84efcd3ba837f467d4248bbf755
Author: Carlos Soriano <csoriano gnome org>
Date: Thu Sep 10 20:12:21 2015 +0200
application: use target_slot window if available
Just to make the codepath consistent always.
src/nautilus-application.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index bb6312c..1b37fc3 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -467,6 +467,12 @@ nautilus_application_open_location_full (NautilusApplication *application,
g_free (new_uri);
/* end debug */
+ /* In case a target slot is provided, we can use it's associated window.
+ * In case a target window were given as well, we give preference to the
+ * slot we target at */
+ if (target_slot != NULL)
+ target_window = nautilus_window_slot_get_window (target_slot);
+
if ((target_window && NAUTILUS_IS_DESKTOP_WINDOW (target_window)) ||
(!target_window && NAUTILUS_IS_DESKTOP_WINDOW (active_window))) {
NautilusWindow *desktop_target_window;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]