[Sugar-devel] [PATCH sugar-toolkit-gtk3] Add DescriptionEntry to the activity sub-toolbar
Simon Schampijer
simon at schampijer.de
Tue Jan 31 16:40:55 EST 2012
The patch needs a small addition:
diff --git a/src/sugar3/activity/widgets.py b/src/sugar3/activity/widgets.py
index 616c9b9..f4cd4c9 100644
--- a/src/sugar3/activity/widgets.py
+++ b/src/sugar3/activity/widgets.py
@@ -260,6 +260,8 @@ class DescriptionEntry(Gtk.ToolItem):
def __jobject_updated_cb(self, jobject):
if self._text_view.has_focus():
return
+ if 'description' not in jobject:
+ return
if self._get_text_from_buffer() == jobject['description']:
return
buf = self._text_view.get_buffer()
Regards,
Simon
More information about the Sugar-devel
mailing list