From f3e20cb5eceb251219e6293cdf6f75b72c954733 Mon Sep 17 00:00:00 2001 From: Frederic Brodbeck Date: Sat, 9 Oct 2021 13:02:46 +0200 Subject: [PATCH] wip --- data/dbus-interfaces.xml | 5 +++++ libnemo-private/nemo-dbus-manager.c | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/data/dbus-interfaces.xml b/data/dbus-interfaces.xml index bd8388fc6..4d244f7d6 100644 --- a/data/dbus-interfaces.xml +++ b/data/dbus-interfaces.xml @@ -42,4 +42,9 @@ + + + + + diff --git a/libnemo-private/nemo-dbus-manager.c b/libnemo-private/nemo-dbus-manager.c index 5c3a3891a..3d4694db2 100644 --- a/libnemo-private/nemo-dbus-manager.c +++ b/libnemo-private/nemo-dbus-manager.c @@ -95,6 +95,15 @@ handle_copy_file (NemoDBusFileOperations *object, return TRUE; /* invocation was handled */ } +static gboolean +selection_event (NemoDBusFileOperations *object, + GDBusMethodInvocation *invocation, + const guint16 direction) +{ + printf("%i", direction); + return TRUE; /* invocation was handled */ +} + static gboolean handle_copy_uris (NemoDBusFileOperations *object, GDBusMethodInvocation *invocation, @@ -185,6 +194,10 @@ nemo_dbus_manager_init (NemoDBusManager *self) "handle-empty-trash", G_CALLBACK (handle_empty_trash), self); + g_signal_connect (self->file_operations, + "selection-event", + G_CALLBACK (selection_event), + self); g_dbus_interface_skeleton_export (G_DBUS_INTERFACE_SKELETON (self->file_operations), connection, "/org/Nemo", NULL);