[nautilus] NautilusFreedesktopDBus: add public setter for OpenLocations



commit 49115b85264209e73110306ab8f3fe96dba816c6
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Wed Feb 27 15:31:42 2013 +0100

    NautilusFreedesktopDBus: add public setter for OpenLocations
    
    https://bugzilla.gnome.org/show_bug.cgi?id=694266

 data/freedesktop-dbus-interfaces.xml |    1 +
 src/nautilus-freedesktop-dbus.c      |    9 +++++++++
 src/nautilus-freedesktop-dbus.h      |   14 ++++++++++++++
 3 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/data/freedesktop-dbus-interfaces.xml b/data/freedesktop-dbus-interfaces.xml
index 28e1d0e..3ebd049 100644
--- a/data/freedesktop-dbus-interfaces.xml
+++ b/data/freedesktop-dbus-interfaces.xml
@@ -32,5 +32,6 @@
       <arg type='as' name='URIs' direction='in'/>
       <arg type='s' name='StartupId' direction='in'/>
     </method>
+    <property name="OpenLocations" type="as" access="read"/>
   </interface>
 </node>
diff --git a/src/nautilus-freedesktop-dbus.c b/src/nautilus-freedesktop-dbus.c
index 0fb5eb4..796a203 100644
--- a/src/nautilus-freedesktop-dbus.c
+++ b/src/nautilus-freedesktop-dbus.c
@@ -220,6 +220,15 @@ nautilus_freedesktop_dbus_init (NautilusFreedesktopDBus *fdb)
                                        NULL);
 }
 
+void
+nautilus_freedesktop_dbus_set_open_locations (NautilusFreedesktopDBus *fdb,
+                                             const gchar **locations)
+{
+       g_return_if_fail (NAUTILUS_IS_FREEDESKTOP_DBUS (fdb));
+
+       nautilus_freedesktop_file_manager1_set_open_locations (fdb->skeleton, locations);
+}
+
 /* Tries to own the org.freedesktop.FileManager1 service name */
 NautilusFreedesktopDBus *
 nautilus_freedesktop_dbus_new (void)
diff --git a/src/nautilus-freedesktop-dbus.h b/src/nautilus-freedesktop-dbus.h
index b415368..40a5af7 100644
--- a/src/nautilus-freedesktop-dbus.h
+++ b/src/nautilus-freedesktop-dbus.h
@@ -29,10 +29,24 @@
 #define NAUTILUS_FDO_DBUS_NAME  "org.freedesktop.FileManager1"
 #define NAUTILUS_FDO_DBUS_PATH  "/org/freedesktop/FileManager1"
 
+#define NAUTILUS_TYPE_FREEDESKTOP_DBUS nautilus_freedesktop_dbus_get_type()
+#define NAUTILUS_FREEDESKTOP_DBUS(obj) \
+  (G_TYPE_CHECK_INSTANCE_CAST ((obj), NAUTILUS_TYPE_FREEDESKTOP_DBUS, NautilusFreedesktopDBus))
+#define NAUTILUS_FREEDESKTOP_DBUS_CLASS(klass) \
+  (G_TYPE_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_FREEDESKTOP_DBUS, NautilusFreedesktopDBusClass))
+#define NAUTILUS_IS_FREEDESKTOP_DBUS(obj) \
+  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NAUTILUS_TYPE_FREEDESKTOP_DBUS))
+#define NAUTILUS_IS_FREEDESKTOP_DBUS_CLASS(klass) \
+  (G_TYPE_CHECK_CLASS_TYPE ((klass), NAUTILUS_TYPE_FREEDESKTOP_DBUS))
+#define NAUTILUS_FREEDESKTOP_DBUS_GET_CLASS(obj) \
+  (G_TYPE_INSTANCE_GET_CLASS ((obj), NAUTILUS_TYPE_FREEDESKTOP_DBUS, NautilusFreedesktopDBusClass))
+
 typedef struct _NautilusFreedesktopDBus NautilusFreedesktopDBus;
 typedef struct _NautilusFreedesktopDBusClass NautilusFreedesktopDBusClass;
 
 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);
+
 #endif /* __NAUTILUS_FREEDESKTOP_DBUS_H__ */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]