Commit d3b487ff authored by Saul Ibarra's avatar Saul Ibarra

Added hook for branding

parent 2b470ccc
...@@ -29,6 +29,11 @@ from gnutls.crypto import X509Certificate, X509PrivateKey ...@@ -29,6 +29,11 @@ from gnutls.crypto import X509Certificate, X509PrivateKey
from gnutls.errors import GNUTLSError from gnutls.errors import GNUTLSError
from zope.interface import implements from zope.interface import implements
try:
from blink import branding
except ImportError:
branding = Null
from sipsimple.account import Account, AccountManager, BonjourAccount from sipsimple.account import Account, AccountManager, BonjourAccount
from sipsimple.addressbook import Contact, Group from sipsimple.addressbook import Contact, Group
from sipsimple.application import SIPApplication from sipsimple.application import SIPApplication
...@@ -124,6 +129,8 @@ class Blink(QApplication): ...@@ -124,6 +129,8 @@ class Blink(QApplication):
session_manager = SessionManager() session_manager = SessionManager()
session_manager.initialize(self.main_window, self.main_window.session_model) session_manager.initialize(self.main_window, self.main_window.session_model)
branding.setup(self)
def run(self): def run(self):
from blink.util import call_in_gui_thread as call_later from blink.util import call_in_gui_thread as call_later
call_later(self._initialize_sipsimple) # initialize sipsimple after the qt event loop is started call_later(self._initialize_sipsimple) # initialize sipsimple after the qt event loop is started
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment