~ubuntu-branches/ubuntu/oneiric/avant-window-navigator/oneiric

« back to all changes in this revision

Viewing changes to awn-manager/awnDefs.py

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lavergne
  • Date: 2008-05-24 14:42:01 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080524144201-r3v8e4g2hv2q1i9x
Tags: 0.2.6-6
* debian/patches/04-fix-colormap.patch
 - Fix crash in awn-manager if colormap == None. Thanks Emme for the 
   patch. (Closes: #482030) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#  Notes: Avant Window Navigator preferences window
21
21
 
22
22
import sys, os
23
 
 
24
 
PREFIX = "@PREFIX@"
25
 
 
26
 
LOCALEDIR = os.path.join (PREFIX, "share/locale")
27
 
PKGDATADIR = os.path.join (PREFIX, "share/avant-window-navigator")
28
 
 
29
 
 
 
23
from awn import CONFIG_DEFAULT_GROUP as DEFAULT_GROUP
 
24
 
 
25
PREFIX = "/usr/local"
 
26
 
 
27
LOCALEDIR = os.path.join (PREFIX, "share", "locale")
 
28
PKGDATADIR = '/usr/local/share/avant-window-navigator'
 
29
 
 
30
HOME_CONFIG_DIR = os.path.join(os.path.expanduser("~"), ".config", "awn")
 
31
HOME_APPLET_DIR = os.path.join(HOME_CONFIG_DIR, "applets")
 
32
HOME_LAUNCHERS_DIR = os.path.join(HOME_CONFIG_DIR, "launchers")
 
33
HOME_THEME_DIR = os.path.join(HOME_CONFIG_DIR, "themes")
 
34
HOME_CUSTOM_ICONS_DIR = os.path.join(HOME_CONFIG_DIR, "custom-icons")
 
35
 
 
36
 
 
37
# AwnConfigClient Groups/Keys
 
38
AWN                 = DEFAULT_GROUP        #group
 
39
AUTO_HIDE           = "auto_hide"          #bool
 
40
PANEL_MODE          = "panel_mode"         #bool
 
41
KEEP_BELOW          = "keep_below"         #bool
 
42
 
 
43
BAR                 = "bar"                #group
 
44
ROUNDED_CORNERS     = "rounded_corners"    #bool
 
45
CORNER_RADIUS       = "corner_radius"      #float
 
46
RENDER_PATTERN      = "render_pattern"     #bool
 
47
PATTERN_URI         = "pattern_uri"        #string
 
48
PATTERN_ALPHA       = "pattern_alpha"      #float
 
49
GLASS_STEP_1        = "glass_step_1"       #string
 
50
GLASS_STEP_2        = "glass_step_2"       #string
 
51
GLASS_HISTEP_1      = "glass_histep_1"     #string
 
52
GLASS_HISTEP_2      = "glass_histep_2"     #string
 
53
BORDER_COLOR        = "border_color"       #string
 
54
HILIGHT_COLOR       = "hilight_color"      #string
 
55
SHOW_SEPARATOR      = "show_separator"     #bool
 
56
SEP_COLOR           = "sep_color"
 
57
 
 
58
BAR_HEIGHT          = "bar_height"         #int
 
59
BAR_ANGLE           = "bar_angle"          #int
 
60
ICON_OFFSET         = "icon_offset"        #int
 
61
 
 
62
WINMAN              = "window_manager"     #group
 
63
SHOW_ALL_WINS       = "show_all_windows"   #bool
 
64
LAUNCHERS           = "launchers"          #list
 
65
 
 
66
APP                 = "app"                #group
 
67
ACTIVE_PNG          = "active_png"         #string
 
68
ARROW_COLOR         = "arrow_color"        #color
 
69
TASKS_H_ARROWS      = "tasks_have_arrows"  #bool
 
70
ARROW_OFFSET        = "arrow_offset"
 
71
ICON_EFFECT         = "icon_effect"        #int
 
72
NAME_CHANGE_NOTIFY  = "name_change_notify" #bool
 
73
 
 
74
TITLE               = "title"              #group
 
75
TEXT_COLOR          = "text_color"         #color
 
76
SHADOW_COLOR        = "shadow_color"       #color
 
77
BACKGROUND          = "background"         #color
 
78
FONT_FACE           = "font_face"          #string
 
79
 
 
80
APPLETS             = "applets"            #group
 
81
APPLET_LIST         = "applets_list"       #list
 
82
 
 
83
# i18n-related
 
84
I18N_DOMAIN = "avant-window-navigator"
 
85
 
 
86
def i18nize(symbol_table):
 
87
    import locale
 
88
    import gettext
 
89
    locale.setlocale(locale.LC_ALL, '')
 
90
    gettext.bindtextdomain(I18N_DOMAIN, LOCALEDIR)
 
91
    gettext.textdomain(I18N_DOMAIN)
 
92
    symbol_table['_'] = gettext.gettext