Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tutorius/creator.py
diff options
context:
space:
mode:
Diffstat (limited to 'tutorius/creator.py')
-rw-r--r--tutorius/creator.py28
1 files changed, 24 insertions, 4 deletions
diff --git a/tutorius/creator.py b/tutorius/creator.py
index 54e2912..04c96fd 100644
--- a/tutorius/creator.py
+++ b/tutorius/creator.py
@@ -41,6 +41,11 @@ from functools import partial
from dbus import SessionBus
from dbus.service import method, Object, BusName
+from .dbustools import ignore
+
+import logging
+
+LOGGER = logging.getLogger("creator")
BUS_PATH = "/org/tutorius/Creator"
BUS_NAME = "org.tutorius.Creator"
@@ -58,7 +63,7 @@ def get_creator_proxy():
"""
Returns a Creator dbus proxy for inter-process events.
"""
- bus = dbus.SessionBus()
+ bus = SessionBus()
proxy = bus.get_object(BUS_NAME, BUS_PATH)
return proxy
@@ -315,6 +320,14 @@ class Creator(Object):
self.set_insertion_point(new_state)
def properties_changed(self, action, properties):
+ LOGGER.debug("Creator :: properties_changed for action at address %s to %s"%(action.address, str(properties)))
+ address = action.address
+ self._probe_mgr.update(address,
+ action,
+ is_editing=True
+ )
+
+ def _update_error(self, exception):
pass
def _action_refresh_cb(self, widget, evt, action):
@@ -408,6 +421,14 @@ class Creator(Object):
"""
pass
+ @method(BUS_NAME,
+ in_signature='',
+ out_signature='b')
+ def is_creator_open(self):
+ """
+ @returns True if the creator is being executed right now, False otherwise.
+ """
+ return self.is_authoring
class ToolBox(object):
"""
@@ -524,9 +545,8 @@ class ToolBox(object):
def _refresh_action_cb(self):
if self._action is not None:
- self.__parent._creator._action_refresh_cb(None, None, self._action)
-
-
+ default_creator().properties_changed(self._action, self._action._props)
+ #self.__parent._creator._action_refresh_cb(None, None, self._action)
# The purpose of this function is to reformat text, as current IconView
# implentation does not insert carriage returns on long lines.