[nautilus/wip/muktupavels/delete] dbus-manager: deprecate old interface
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/muktupavels/delete] dbus-manager: deprecate old interface
- Date: Mon, 6 Apr 2020 12:58:20 +0000 (UTC)
commit 0871d75579ac1f18d418a9820fc630e5fd0a68b5
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Mon Apr 6 15:29:31 2020 +0300
dbus-manager: deprecate old interface
https://gitlab.gnome.org/GNOME/nautilus/-/merge_requests/504
data/dbus-interfaces.xml | 7 +++++++
src/nautilus-dbus-manager.c | 3 +++
2 files changed, 10 insertions(+)
---
diff --git a/data/dbus-interfaces.xml b/data/dbus-interfaces.xml
index 1827f92ab..a388af02c 100644
--- a/data/dbus-interfaces.xml
+++ b/data/dbus-interfaces.xml
@@ -23,6 +23,13 @@
<node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">
<interface name='org.gnome.Nautilus.FileOperations'>
+
+ <!--
+ This interface has been deprecated. Please switch to
+ org.gnome.Nautilus.FileOperations2 interace.
+ -->
+ <annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
+
<method name='CopyURIs'>
<arg type='as' name='SourceFilesURIList' direction='in'/>
<arg type='s' name='DestinationDirectoryURI' direction='in'/>
diff --git a/src/nautilus-dbus-manager.c b/src/nautilus-dbus-manager.c
index bb4d13963..61441a6b5 100644
--- a/src/nautilus-dbus-manager.c
+++ b/src/nautilus-dbus-manager.c
@@ -516,7 +516,10 @@ undo_manager_changed (NautilusDBusManager *self)
static void
nautilus_dbus_manager_init (NautilusDBusManager *self)
{
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
self->file_operations = nautilus_dbus_file_operations_skeleton_new ();
+ G_GNUC_END_IGNORE_DEPRECATIONS
+
self->file_operations2 = nautilus_dbus_file_operations2_skeleton_new ();
g_signal_connect (self->file_operations,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]