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/config.py

    r8484 r9123  
    11##      common/config.py 
    22## 
    3 ## Copyright (C) 2003-2006 Yann Le Boulanger <asterix@lagaule.org> 
     3## Copyright (C) 2003-2007 Yann Leboulanger <asterix@lagaule.org> 
    44## Copyright (C) 2005-2006 Nikos Kouremenos <kourem@gmail.com> 
    55## Copyright (C) 2004-2005 Vincent Hanquez <tab@snarc.org> 
    66## Copyright (C) 2005 Dimitur Kirov <dkirov@gmail.com> 
    7 ## Copyright (C) 2005 Travis Shirk <travis@pobox.com> 
    8 ## Copyright (C) 2005 Norman Rasmussen <norman@rasmussen.co.za> 
     7##                   Travis Shirk <travis@pobox.com> 
     8##                   Norman Rasmussen <norman@rasmussen.co.za> 
    99## Copyright (C) 2006 Stefan Bethge <stefan@lanpartei.de> 
    1010## Copyright (C) 2007 Julien Pivotto <roidelapluie@gmail.com> 
     11##                    Stephan Erb <steve-e@h3c.de>  
    1112##  
    12 ## This program is free software; you can redistribute it and/or modify 
     13## This file is part of Gajim. 
     14## 
     15## Gajim is free software; you can redistribute it and/or modify 
    1316## it under the terms of the GNU General Public License as published 
    14 ## by the Free Software Foundation; version 2 only. 
     17## by the Free Software Foundation; version 3 only. 
    1518## 
    16 ## This program is distributed in the hope that it will be useful, 
     19## Gajim is distributed in the hope that it will be useful, 
    1720## but WITHOUT ANY WARRANTY; without even the implied warranty of 
    1821## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1922## GNU General Public License for more details. 
    2023## 
    21  
    22  
     24## You should have received a copy of the GNU General Public License 
     25## along with Gajim.  If not, see <http://www.gnu.org/licenses/>. 
     26## 
     27 
     28 
     29import sys 
    2330import re 
    2431import copy 
     
    4552 
    4653        DEFAULT_ICONSET = 'dcraven' 
     54        if sys.platform == 'darwin': 
     55                DEFAULT_OPENWITH = 'open' 
     56                DEFAULT_BROWSER = 'open -a Safari' 
     57                DEFAULT_MAILAPP = 'open -a Mail' 
     58                DEFAULT_FILE_MANAGER = 'open -a Finder' 
     59        else: 
     60                DEFAULT_OPENWITH = 'gnome-open' 
     61                DEFAULT_BROWSER = 'firefox' 
     62                DEFAULT_MAILAPP = 'mozilla-thunderbird -compose' 
     63                DEFAULT_FILE_MANAGER = 'xffm' 
    4764 
    4865        __options = { 
     
    103120                # 'aplay', 'play', 'esdplay', 'artsplay' detected first time only 
    104121                'soundplayer': [ opt_str, '' ], 
    105                 'openwith': [ opt_str, 'gnome-open' ], 
    106                 'custombrowser': [ opt_str, 'firefox' ], 
    107                 'custommailapp': [ opt_str, 'mozilla-thunderbird -compose' ], 
    108                 'custom_file_manager': [ opt_str, 'xffm' ], 
     122                'openwith': [ opt_str, DEFAULT_OPENWITH ], 
     123                'custombrowser': [ opt_str, DEFAULT_BROWSER ], 
     124                'custommailapp': [ opt_str, DEFAULT_MAILAPP ], 
     125                'custom_file_manager': [ opt_str, DEFAULT_FILE_MANAGER ], 
    109126                'gc-hpaned-position': [opt_int, 430], 
    110127                'gc_refer_to_nick_char': [opt_str, ',', _('Character to add after nickname when using nick completion (tab) in group chat.')], 
     
    128145                'roster_x-position': [ opt_int, 0 ], 
    129146                'roster_y-position': [ opt_int, 0 ], 
    130                 'roster_width': [ opt_int, 150 ], 
     147                'roster_width': [ opt_int, 200 ], 
    131148                'roster_height': [ opt_int, 400 ], 
    132149                'latest_disco_addresses': [ opt_str, '' ], 
     
    137154                'send_os_info': [ opt_bool, True ], 
    138155                'set_status_msg_from_current_music_track': [ opt_bool, False ], 
     156                'set_status_msg_from_lastfm': [ opt_bool, False, _('If checked, Gajim can regularly poll a Last.fm account and adjust the status message to reflect recently played songs. set_status_msg_from_current_music_track option must be False.') ], 
     157                'lastfm_username': [ opt_str, '', _('The username used to identify the Last.fm account.')], 
    139158                'notify_on_new_gmail_email': [ opt_bool, True ], 
    140159                'notify_on_new_gmail_email_extra': [ opt_bool, False ], 
    141                 'usegpg': [ opt_bool, False, '', True ], 
    142160                'use_gpg_agent': [ opt_bool, False ], 
    143161                'change_roster_title': [ opt_bool, True, _('Add * and [n] in roster title?')], 
     
    176194                'tabs_border': [opt_bool, False, _('Show tabbed notebook border in chat windows?')], 
    177195                'tabs_close_button': [opt_bool, True, _('Show close button in tab?')], 
     196                'log_encrypted_sessions': [opt_bool, False, _('When negotiating an encrypted session, should Gajim assume you want your messages to be logged?')], 
     197                'e2e_public_key': [opt_bool, False, _('When negotiating an encrypted session, should Gajim prefer to use public keys for identification?')], 
    178198                'chat_avatar_width': [opt_int, 52], 
    179199                'chat_avatar_height': [opt_int, 52], 
     
    219239                'chat_merge_consecutive_nickname': [opt_bool, False, _('In a chat, show the nickname at the beginning of a line only when it\'s not the same person talking than in previous message.')], 
    220240                'chat_merge_consecutive_nickname_indent': [opt_str, '  ', _('Indentation when using merge consecutive nickname.')], 
     241                'use_smooth_scrolling': [opt_bool, True, _('Smooth scroll message in conversation window')], 
    221242                'gc_nicknames_colors': [ opt_str, '#a34526:#c000ff:#0012ff:#388a99:#045723:#7c7c7c:#ff8a00:#94452d:#244b5a:#32645a', _('List of colors that will be used to color nicknames in group chats.'), True ], 
    222243                'ctrl_tab_go_to_next_composing': [opt_bool, True, _('Ctrl-Tab go to next composing tab when none is unread.')], 
     
    236257                'subscribe_activity': [opt_bool, True], 
    237258                'subscribe_tune': [opt_bool, True], 
     259                'attach_notifications_to_systray': [opt_bool, False, _('If True, notification windows from notification-daemon will be attached to systray icon.')], 
     260                'use_pep': [opt_bool, False, 'temporary variable to enable pep support'], 
    238261        } 
    239262 
     
    258281                        'proxy': [ opt_str, '', '', True ], 
    259282                        'keyid': [ opt_str, '', '', True ], 
     283                        'gpg_sign_presence': [ opt_bool, True, _('If disabled, don\'t sign presences with GPG key, even if GPG is configured.') ], 
    260284                        'keyname': [ opt_str, '', '', True ], 
    261285                        'usessl': [ opt_bool, False, '', True ], 
     286                        'ssl_fingerprint_sha1': [ opt_str, '', '', True ], 
    262287                        'use_srv': [ opt_bool, True, '', True ], 
    263288                        'use_custom_host': [ opt_bool, False, '', True ], 
    264289                        'custom_port': [ opt_int, 5222, '', True ], 
    265290                        'custom_host': [ opt_str, '', '', True ], 
    266                         'savegpgpass': [ opt_bool, False, '', True ], 
    267                         'gpgpassword': [ opt_str, '' ], 
    268291                        'sync_with_global_status': [ opt_bool, False, ], 
    269292                        'no_log_for': [ opt_str, '' ],