Remove the theme hacks. sugar-jhbuild set this up fine now.
This commit is contained in:
parent
093a1981d5
commit
27456ff723
@ -4,11 +4,10 @@ import gobject
|
|||||||
import time
|
import time
|
||||||
import dbus
|
import dbus
|
||||||
import dbus.dbus_bindings
|
import dbus.dbus_bindings
|
||||||
from sugar.presence import PresenceService
|
|
||||||
|
|
||||||
|
from sugar.presence import PresenceService
|
||||||
from Shell import Shell
|
from Shell import Shell
|
||||||
from Process import Process
|
from Process import Process
|
||||||
import sugar.theme
|
|
||||||
import sugar.env
|
import sugar.env
|
||||||
|
|
||||||
class DbusProcess(Process):
|
class DbusProcess(Process):
|
||||||
@ -61,7 +60,6 @@ class PresenceServiceProcess(Process):
|
|||||||
class Session:
|
class Session:
|
||||||
"""Takes care of running the shell and all the sugar processes"""
|
"""Takes care of running the shell and all the sugar processes"""
|
||||||
def __init__(self, registry):
|
def __init__(self, registry):
|
||||||
sugar.theme.setup()
|
|
||||||
self._registry = registry
|
self._registry = registry
|
||||||
|
|
||||||
def start(self):
|
def start(self):
|
||||||
|
@ -1,11 +1,9 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
import pygtk
|
import pygtk
|
||||||
pygtk.require('2.0')
|
pygtk.require('2.0')
|
||||||
import gobject
|
|
||||||
import gtk
|
import gtk
|
||||||
import dbus.glib
|
import dbus.glib
|
||||||
|
|
||||||
@ -14,16 +12,9 @@ gtk.gdk.threads_init()
|
|||||||
dbus.glib.threads_init()
|
dbus.glib.threads_init()
|
||||||
|
|
||||||
from sugar.activity import ActivityFactory
|
from sugar.activity import ActivityFactory
|
||||||
from sugar.LogWriter import LogWriter
|
|
||||||
from sugar import theme
|
|
||||||
|
|
||||||
logging.info('Starting activity factory %s' % sys.argv[1])
|
logging.info('Starting activity factory %s' % sys.argv[1])
|
||||||
|
|
||||||
theme.setup()
|
|
||||||
|
|
||||||
#lw = LogWriter(sys.argv[1])
|
|
||||||
#lw.start()
|
|
||||||
|
|
||||||
ActivityFactory.register_factory(sys.argv[1], sys.argv[2])
|
ActivityFactory.register_factory(sys.argv[1], sys.argv[2])
|
||||||
|
|
||||||
gtk.main()
|
gtk.main()
|
||||||
|
@ -7,7 +7,6 @@ sugar_PYTHON = \
|
|||||||
bots.py \
|
bots.py \
|
||||||
env.py \
|
env.py \
|
||||||
setup.py \
|
setup.py \
|
||||||
theme.py \
|
|
||||||
util.py \
|
util.py \
|
||||||
LogWriter.py
|
LogWriter.py
|
||||||
|
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
import gtk
|
|
||||||
|
|
||||||
def setup():
|
|
||||||
settings = gtk.settings_get_default()
|
|
||||||
|
|
||||||
if settings.get_property('gtk-theme-name') != 'olpc':
|
|
||||||
settings.set_string_property('gtk-theme-name', 'olpc', '')
|
|
||||||
|
|
||||||
if settings.get_property('gtk-icon-theme-name') != 'olpc':
|
|
||||||
settings.set_string_property('gtk-icon-theme-name', 'olpc', '')
|
|
Loading…
Reference in New Issue
Block a user