Show
Ignore:
Timestamp:
12/12/07 09:44:46 (12 months ago)
Author:
asterix
Message:

merge diff from trunk

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/pep/src/common/dbus_support.py

    r8478 r9123  
    11##  dbus_support.py 
    22## 
    3 ## Copyright (C) 2005 Yann Le Boulanger <asterix@lagaule.org> 
     3## Copyright (C) 2005 Yann Leboulanger <asterix@lagaule.org> 
    44## Copyright (C) 2005 Nikos Kouremenos <kourem@gmail.com> 
    55## Copyright (C) 2005 Dimitur Kirov <dkirov@gmail.com> 
    66## Copyright (C) 2005 Andrew Sayman <lorien420@myrealbox.com> 
    77## 
    8 ## This program is free software; you can redistribute it and/or modify 
     8## This file is part of Gajim. 
     9## 
     10## Gajim is free software; you can redistribute it and/or modify 
    911## it under the terms of the GNU General Public License as published 
    10 ## by the Free Software Foundation; version 2 only. 
     12## by the Free Software Foundation; version 3 only. 
    1113## 
    12 ## This program is distributed in the hope that it will be useful, 
     14## Gajim is distributed in the hope that it will be useful, 
    1315## but WITHOUT ANY WARRANTY; without even the implied warranty of 
    1416## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1517## GNU General Public License for more details. 
    1618## 
     19## You should have received a copy of the GNU General Public License 
     20## along with Gajim.  If not, see <http://www.gnu.org/licenses/>. 
     21## 
    1722 
    18 import os 
     23import os, sys 
    1924 
    2025from common import gajim 
     
    2429 
    2530try: 
     31        if sys.platform == 'darwin': 
     32                import osx.dbus 
     33                osx.dbus.load(True) 
    2634        import dbus 
    2735        import dbus.service 
    2836        import dbus.glib 
    29         supported = True # does use have D-Bus bindings? 
     37        supported = True # does user have D-Bus bindings? 
    3038except ImportError: 
    3139        supported = False 
     
    99107 
    100108def get_interface(interface, path): 
    101         '''Returns an interface on the current SessionBus. If the interface isn't  
     109        '''Returns an interface on the current SessionBus. If the interface isn\'t  
    102110        running, it tries to start it first.''' 
    103111        if not supported: