diff --git a/src/sugar3/activity/activity.py b/src/sugar3/activity/activity.py index 08dd2e6a..3ad4a44f 100644 --- a/src/sugar3/activity/activity.py +++ b/src/sugar3/activity/activity.py @@ -328,7 +328,7 @@ class Activity(Window, Gtk.Container): 'joined': (GObject.SignalFlags.RUN_FIRST, None, ([])), # For internal use only, use can_close() if you want to perform extra # checks before actually closing - '_closing': (GObject.SignalFlags.RUN_FIRST, None, ([])), + 'closing': (GObject.SignalFlags.RUN_FIRST, None, ([])), } def __init__(self, handle, create_jobject=True): @@ -1301,7 +1301,7 @@ class Activity(Window, Gtk.Container): def _do_close(self, skip_save): self.busy() - self.emit('_closing') + self.emit('closing') if not self._closing: if not self._prepare_close(skip_save): return diff --git a/src/sugar3/activity/widgets.py b/src/sugar3/activity/widgets.py index 57223f4b..7982489e 100644 --- a/src/sugar3/activity/widgets.py +++ b/src/sugar3/activity/widgets.py @@ -189,7 +189,7 @@ class TitleEntry(Gtk.ToolItem): self.add(self.entry) activity.metadata.connect('updated', self.__jobject_updated_cb) - activity.connect('_closing', self.__closing_cb) + activity.connect('closing', self.__closing_cb) def __activate_cb(self, entry, activity): self.save_title(activity)