[nautilus] mime-actions: use explicit slot for opening locations
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] mime-actions: use explicit slot for opening locations
- Date: Fri, 11 Dec 2015 12:48:35 +0000 (UTC)
commit 81c58a9c7ae2688ed7fff7f3400a698bbc4d1a00
Author: Carlos Soriano <csoriano gnome org>
Date: Fri Dec 11 11:07:52 2015 +0100
mime-actions: use explicit slot for opening locations
Even if we wanted to always use the active window as the default
action to open locations, seems gtk_get_active_windows doesn't work
as expected for us. Until we figure out the problem, pass explicitly
the target slot that the caller provides so users don't experience
the location opening in a different window than the expected.
https://bugzilla.gnome.org/show_bug.cgi?id=756499
src/nautilus-mime-actions.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-mime-actions.c b/src/nautilus-mime-actions.c
index 44c99d8..6b47d4e 100644
--- a/src/nautilus-mime-actions.c
+++ b/src/nautilus-mime-actions.c
@@ -1528,8 +1528,12 @@ activate_files (ActivateParameters *parameters)
uri = nautilus_file_get_activation_uri (file);
f = g_file_new_for_uri (uri);
+ /* FIXME: we need to pass the parent_window, but we only use it for the current
active window,
+ * which nautilus-application should take care of. However is not working and
creating regressions
+ * in some cases. Until we figure out what's going on, continue to use the
parameters->slot
+ * to make splicit the window we want to use for activating the files */
nautilus_application_open_location_full (NAUTILUS_APPLICATION
(g_application_get_default ()),
- f, flags, NULL, NULL, NULL);
+ f, flags, NULL, NULL, parameters->slot);
g_object_unref (f);
g_free (uri);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]