[gnome-flashback] desktop: add Nautilus FileOperations D-Bus interface
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] desktop: add Nautilus FileOperations D-Bus interface
- Date: Tue, 12 Nov 2019 20:54:48 +0000 (UTC)
commit bbf43688719464a440e0d1203f6824015a23d525
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Tue Nov 12 22:00:49 2019 +0200
desktop: add Nautilus FileOperations D-Bus interface
gnome-flashback/libdesktop/Makefile.am | 9 +++++
.../org.gnome.Nautilus.FileOperations.xml | 42 ++++++++++++++++++++++
2 files changed, 51 insertions(+)
---
diff --git a/gnome-flashback/libdesktop/Makefile.am b/gnome-flashback/libdesktop/Makefile.am
index 827ce32..0af6104 100644
--- a/gnome-flashback/libdesktop/Makefile.am
+++ b/gnome-flashback/libdesktop/Makefile.am
@@ -56,14 +56,23 @@ gf-desktop-enum-types.h: gf-desktop-enum-types.h.in $(ENUM_TYPES)
$(AM_V_GEN) $(GLIB_MKENUMS) --template $(srcdir)/gf-desktop-enum-types.h.in $(ENUM_TYPES) > \
gf-desktop-enum-types.h.tmp && mv gf-desktop-enum-types.h.tmp gf-desktop-enum-types.h
+gf-nautilus-gen.h:
+gf-nautilus-gen.c: org.gnome.Nautilus.FileOperations.xml
+ $(AM_V_GEN) $(GDBUS_CODEGEN) --c-namespace Gf \
+ --generate-c-code gf-nautilus-gen \
+ $(srcdir)/org.gnome.Nautilus.FileOperations.xml
+
BUILT_SOURCES = \
gf-desktop-enum-types.c \
gf-desktop-enum-types.h \
+ gf-nautilus-gen.c \
+ gf-nautilus-gen.h \
$(NULL)
EXTRA_DIST = \
gf-desktop-enum-types.c.in \
gf-desktop-enum-types.h.in \
+ org.gnome.Nautilus.FileOperations.xml \
$(NULL)
CLEANFILES = \
diff --git a/gnome-flashback/libdesktop/org.gnome.Nautilus.FileOperations.xml
b/gnome-flashback/libdesktop/org.gnome.Nautilus.FileOperations.xml
new file mode 100644
index 0000000..629a27e
--- /dev/null
+++ b/gnome-flashback/libdesktop/org.gnome.Nautilus.FileOperations.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
+"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
+<node>
+ <interface name="org.gnome.Nautilus.FileOperations">
+ <annotation name="org.gtk.GDBus.C.Name" value="NautilusGen" />
+
+ <method name="CopyURIs">
+ <arg type="as" name="SourceFilesURIList" direction="in" />
+ <arg type="s" name="DestinationDirectoryURI" direction="in" />
+ </method>
+
+ <method name="MoveURIs">
+ <arg type="as" name="SourceFilesURIList" direction="in" />
+ <arg type="s" name="DestinationDirectoryURI" direction="in" />
+ </method>
+
+ <method name="EmptyTrash">
+ </method>
+
+ <method name="TrashFiles">
+ <arg type="as" name="URIs" direction="in" />
+ </method>
+
+ <method name="CreateFolder">
+ <arg type="s" name="URI" direction="in" />
+ </method>
+
+ <method name="RenameFile">
+ <arg type="s" name="URI" direction="in" />
+ <arg type="s" name="NewName" direction="in" />
+ </method>
+
+ <method name="Undo">
+ </method>
+
+ <method name="Redo">
+ </method>
+
+ <property name="UndoStatus" type="i" access="read" />
+ </interface>
+</node>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]