Add a test for icons
This commit is contained in:
parent
8d27527fd9
commit
b8018bb889
@ -1,2 +0,0 @@
|
|||||||
To install just drop the whole directory inside ~/.sugar/activities.
|
|
||||||
Then run sugar as usual.
|
|
@ -1,4 +0,0 @@
|
|||||||
[Activity]
|
|
||||||
name = GMail
|
|
||||||
id = org.sugar.GMail
|
|
||||||
python_module = gmail.GMailActivity
|
|
@ -1,22 +0,0 @@
|
|||||||
import os
|
|
||||||
|
|
||||||
import geckoembed
|
|
||||||
|
|
||||||
from sugar.activity.Activity import Activity
|
|
||||||
import sugar.env
|
|
||||||
|
|
||||||
_GMAIL_ACTIVITY_TYPE = "_gmail_google._tcp"
|
|
||||||
|
|
||||||
class GMailActivity(Activity):
|
|
||||||
def __init__(self, args):
|
|
||||||
Activity.__init__(self, _GMAIL_ACTIVITY_TYPE)
|
|
||||||
|
|
||||||
profile_path = os.path.join(sugar.env.get_user_dir(), 'gmail')
|
|
||||||
geckoembed.set_profile_path(profile_path)
|
|
||||||
self.set_title("Mail")
|
|
||||||
|
|
||||||
embed = geckoembed.Embed()
|
|
||||||
self.add(embed)
|
|
||||||
embed.show()
|
|
||||||
|
|
||||||
embed.load_address("http://www.gmail.com")
|
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Loading…
Reference in New Issue
Block a user