Initialize profile
This commit is contained in:
parent
03af8bceea
commit
b4ebdfa5af
@ -1,15 +1,20 @@
|
|||||||
|
import os
|
||||||
|
|
||||||
import pygtk
|
import pygtk
|
||||||
pygtk.require('2.0')
|
pygtk.require('2.0')
|
||||||
import gtk
|
import gtk
|
||||||
import geckoembed
|
import geckoembed
|
||||||
|
|
||||||
from sugar.shell import activity
|
from sugar.shell import activity
|
||||||
|
import sugar.env
|
||||||
|
|
||||||
class GMailActivity(activity.Activity):
|
class GMailActivity(activity.Activity):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
activity.Activity.__init__(self)
|
activity.Activity.__init__(self)
|
||||||
|
|
||||||
def activity_on_connected_to_shell(self):
|
def activity_on_connected_to_shell(self):
|
||||||
|
profile_path = os.path.join(sugar.env.get_user_dir(), 'gmail')
|
||||||
|
geckoembed.set_profile_path(profile_path)
|
||||||
self.activity_set_tab_text("Mail")
|
self.activity_set_tab_text("Mail")
|
||||||
self.activity_set_tab_icon_name("stock_mail")
|
self.activity_set_tab_icon_name("stock_mail")
|
||||||
self.activity_show_icon(True)
|
self.activity_show_icon(True)
|
||||||
|
Loading…
Reference in New Issue
Block a user