From 404e6ceeddbb439ccfb9a5c70a05e0813ddb7dce Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Mon, 10 Sep 2007 15:04:56 +0000 Subject: Release version 21. --- diff --git a/NEWS b/NEWS index 031ea0a..e13879b 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ +21 + * Add spanish translation (xavi) 20 diff --git a/activity/activity.info b/activity/activity.info index d890cb1..3dcead5 100644 --- a/activity/activity.info +++ b/activity/activity.info @@ -1,6 +1,6 @@ [Activity] name = Chat -activity_version = 20 +activity_version = 21 host_version = 1 icon = activity-chat service_name = org.laptop.Chat diff --git a/chat.py b/chat.py index 49941c3..c0d439d 100644 --- a/chat.py +++ b/chat.py @@ -52,6 +52,8 @@ class Chat(Activity): self.set_title('Chat') + self.connect('notify::active', self._a) + root = self.make_root() self.set_canvas(root) root.show_all() @@ -87,9 +89,15 @@ class Chat(Activity): self._buddy_icon(self.owner), _('Share, or invite someone.'), status_message=True) + def _a(self, activity, pspec): + print self.props.active + def _shared_cb(self, activity): logger.debug('Chat was shared') self._setup() + dialog = gtk.MessageDialog(message_format='Hello') + dialog.set_transient_for(self) + dialog.show() def _setup(self): self.text_channel = TextChannelWrapper(self) -- cgit v0.9.1