Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2007-09-10 15:04:56 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-09-10 15:04:56 (GMT)
commit404e6ceeddbb439ccfb9a5c70a05e0813ddb7dce (patch)
tree21b327b0be16a056e4434623e27d06949223473a
parentc73be7a1fc4eb93cb39efcc56b18384e0c18c9a6 (diff)
Release version 21.
-rw-r--r--NEWS2
-rw-r--r--activity/activity.info2
-rw-r--r--chat.py8
3 files changed, 11 insertions, 1 deletions
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)