[conduit] Fixed DBus Exporter sync configuration.
- From: Alexandre Rosenfeld <arosenfeld src gnome org>
- To: svn-commits-list gnome org
- Subject: [conduit] Fixed DBus Exporter sync configuration.
- Date: Sun, 7 Jun 2009 20:35:43 -0400 (EDT)
commit 52710b0e0b50cd79855268df8ca85145602eb67a
Author: Alexandre Rosenfeld <airmind gmail com>
Date: Sun Jun 7 21:34:38 2009 -0300
Fixed DBus Exporter sync configuration.
---
conduit/DBus.py | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/conduit/DBus.py b/conduit/DBus.py
index e76b94d..aca2d8d 100644
--- a/conduit/DBus.py
+++ b/conduit/DBus.py
@@ -247,7 +247,18 @@ class ConduitDBusItem(DBusItem):
self._print("SinkConfigure")
if len(self.conduit.datasinks) != 1:
raise ConduitException("Simple exporter must only have one sink")
- self.conduit.datasinks[0].configure(None)
+ #FIXME Hard-coded GtkUI
+ from conduit.gtkui.WindowConfigurator import WindowConfigurator
+ from conduit.gtkui.ConfigContainer import ConfigContainer
+ configurator = WindowConfigurator(None)
+ container = self.dataprovider.module.get_config_container(
+ configContainerKlass=ConfigContainer,
+ name=self.dataprovider.get_name(),
+ icon=self.dataprovider.get_icon(),
+ configurator=configurator
+ )
+ configurator.set_containers([container])
+ configurator.run(container)
@dbus.service.method(EXPORTER_DBUS_IFACE, in_signature='s', out_signature='b')
def AddData(self, uri):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]