OSDN Git Service

Introduce uri opener.
[fukui-no-namari/fukui-no-namari.git] / src / Hage1 / dbus_object.py
index 4eb0c11..b6038e9 100644 (file)
@@ -20,8 +20,7 @@ import dbus.service
 if getattr(dbus, 'version', (0,0,0)) >= (0,41,0):
     import dbus.glib
 
-import board_window
-import thread_window
+import uri_opener
 
 dbus_interface_name = "tk.tetteke.Hage1"
 
@@ -31,9 +30,5 @@ class DBusHage1Object(dbus.service.Object):
         dbus.service.Object.__init__(self, bus_name, object_path)
 
     @dbus.service.method(dbus_interface_name)
-    def open_board(self, uri):
-        board_window.open_board(uri)
-
-    @dbus.service.method(dbus_interface_name)
-    def open_thread(self, uri):
-        thread_window.open_thread(uri)
+    def open_uri(self, uri):
+        uri_opener.open_uri(uri)