summaryrefslogtreecommitdiff
path: root/src/nautilus-freedesktop-dbus.h
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2018-05-16 12:50:02 -0700
committerPhilip Langdale <philipl@overt.org>2018-05-19 07:26:20 -0700
commita1751d3d870c6cdc092f893755623c4ff20e1ef3 (patch)
tree9034cdd5a35be7ead6088915c242b065941ab279 /src/nautilus-freedesktop-dbus.h
parentf7460fb0043db70fe82921883bf3141f1ed3bbaf (diff)
downloadnautilus-a1751d3d870c6cdc092f893755623c4ff20e1ef3.tar.gz
nautilus-application: Publish window->location mappings
This is a reworking of a long standing Ubuntu patch that publishes the set of locations open in each Nautilus window. The motivation for this change is that a desktop environment providing special icons for things like removable devices and the trash can match windows to those icons for highlighting purposes. In the original incarnation, Unity provided these icons. In today's world, I'm maintaining a set of patches for dash-to-dock/ubunut-dock that provide these icons too. The original implementation uses Xids to identify windows, but Xids aren't a thing in Wayland so this mechanism is a dead end. Instead, we can use the 'gtk application window object paths' which are published over dbus by GtkApplications, including Nautilus. Mutter already detects these, and makes them available on MetaWindows. The original patch added the mapping property to the fileManager1 interface, and I have left that part as-is, but it's likely not to be the right place to put it. fileManager1 is a generic interface and a property that assumes a GTK behaviour doesn't seem right. We could obviously add it to a new interface under org.gnome.Nautilus, but this would be Nautilus specific - although there isn't a huge scope for other file managers to implement this property, so perhaps that's just fine. dash-to-dock discussion is readable here: https://github.com/micheleg/dash-to-dock/pull/677
Diffstat (limited to 'src/nautilus-freedesktop-dbus.h')
-rw-r--r--src/nautilus-freedesktop-dbus.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nautilus-freedesktop-dbus.h b/src/nautilus-freedesktop-dbus.h
index 57dfef718..6c54be6c4 100644
--- a/src/nautilus-freedesktop-dbus.h
+++ b/src/nautilus-freedesktop-dbus.h
@@ -45,3 +45,5 @@ GType nautilus_freedesktop_dbus_get_type (void);
NautilusFreedesktopDBus * nautilus_freedesktop_dbus_new (void);
void nautilus_freedesktop_dbus_set_open_locations (NautilusFreedesktopDBus *fdb, const gchar **locations);
+
+void nautilus_freedesktop_dbus_set_open_windows_with_locations (NautilusFreedesktopDBus *fdb, GVariant *locations);