Philipp Hörist pushed to branch gajim_1.3 at gajim / gajim

Commits:

1 changed file:

Changes:

  • gajim/history_manager.py
    ... ... @@ -46,6 +46,7 @@
    46 46
     from gi.repository import Gio
    
    47 47
     from gi.repository import Pango
    
    48 48
     
    
    49
    +import gajim.gui
    
    49 50
     from gajim.common import app
    
    50 51
     from gajim.common import configpaths
    
    51 52
     from gajim.common.i18n import _
    
    ... ... @@ -54,6 +55,8 @@
    54 55
     from gajim.common.const import JIDConstant
    
    55 56
     from gajim.common.const import KindConstant
    
    56 57
     from gajim.common.const import ShowConstant
    
    58
    +from gajim.common.settings import Settings
    
    59
    +
    
    57 60
     
    
    58 61
     def is_standalone():
    
    59 62
         # Determine if we are in standalone mode
    
    ... ... @@ -64,7 +67,15 @@ def is_standalone():
    64 67
         return False
    
    65 68
     
    
    66 69
     
    
    70
    +def init_gtk():
    
    71
    +    gajim.gui.init('gtk')
    
    72
    +    from gajim.gui import exception
    
    73
    +    exception.init()
    
    74
    +
    
    75
    +
    
    67 76
     if is_standalone():
    
    77
    +    init_gtk()
    
    78
    +
    
    68 79
         try:
    
    69 80
             shortargs = 'hvsc:l:p:'
    
    70 81
             longargs = 'help verbose separate config-path= loglevel= profile='
    
    ... ... @@ -86,6 +97,8 @@ def is_standalone():
    86 97
                 configpaths.set_config_root(a)
    
    87 98
     
    
    88 99
         configpaths.init()
    
    100
    +    app.settings = Settings()
    
    101
    +    app.settings.init()
    
    89 102
         app.load_css_config()
    
    90 103
     
    
    91 104
     from gajim.common import helpers