Get rid of default type from the activity definition.

Modify code to use activity type id instead, except
from mapping service to activity.
This commit is contained in:
Marco Pesenti Gritti
2006-09-02 10:54:34 +02:00
parent 8ffff18bc3
commit 58a79eb123
10 changed files with 48 additions and 56 deletions
+1 -2
View File
@@ -51,8 +51,7 @@ class BrowserActivity(Activity):
activity_ps.connect('service-appeared', self._service_appeared_cb)
default_type = self.get_default_type()
services = activity_ps.get_services_of_type(default_type)
services = activity_ps.get_services_of_type(self._default_type)
if len(services) > 0:
self._notif_service = services[0]
-1
View File
@@ -3,5 +3,4 @@ name = Web
id = com.redhat.Sugar.BrowserActivity
icon = activity-web
python_module = browser.BrowserActivity.BrowserActivity
default_type = _web_olpc._udp
show_launcher = yes