Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions data/dbus-interfaces.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,9 @@
<arg type='s' name='DestinationDisplayName' direction='in'/>
</method>
</interface>
<interface name='org.Nemo.Preview'>
<signal name="SelectionEvent">
<arg type="q" name="direction" />
</signal>
</interface>
</node>
13 changes: 13 additions & 0 deletions libnemo-private/nemo-dbus-manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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);
Expand Down