X Tutup
Skip to content

Commit d75afaa

Browse files
committed
Removed my old -gtk frontend. I never quite got it to what I wanted it to be and it is a drag on maintenance. Goodbye sweet Windows dreams.
1 parent e80ebe1 commit d75afaa

File tree

9 files changed

+33
-997
lines changed

9 files changed

+33
-997
lines changed

MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ include AUTHORS
33
include CHANGELOG
44
include LICENSE
55
include data/bpython
6-
include data/bpython-gtk
76
include data/bpython.desktop
87
include doc/sphinx/source/conf.py
98
include doc/sphinx/source/*.rst

bpython/config.py

Lines changed: 1 addition & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,7 @@ def loadini(struct, configfile):
100100
'curtsies': {
101101
'list_above' : False,
102102
'fill_terminal' : False,
103-
},
104-
'gtk': {
105-
'font': 'monospace 10',
106-
'color_scheme': 'default'}})
103+
}})
107104
if not config.read(config_path):
108105
# No config file. If the user has it in the old place then complain
109106
if os.path.isfile(os.path.expanduser('~/.bpython.ini')):
@@ -163,13 +160,10 @@ def loadini(struct, configfile):
163160
struct.autocomplete_mode = config.get('general', 'autocomplete_mode')
164161
struct.save_append_py = config.getboolean('general', 'save_append_py')
165162

166-
struct.gtk_font = config.get('gtk', 'font')
167-
168163
struct.curtsies_list_above = config.getboolean('curtsies', 'list_above')
169164
struct.curtsies_fill_terminal = config.getboolean('curtsies', 'fill_terminal')
170165

171166
color_scheme_name = config.get('general', 'color_scheme')
172-
color_gtk_scheme_name = config.get('gtk', 'color_scheme')
173167

174168
default_colors = {
175169
'keyword': 'y',
@@ -189,24 +183,6 @@ def loadini(struct, configfile):
189183
'prompt_more': 'g',
190184
}
191185

192-
default_gtk_colors = {
193-
'keyword': 'b',
194-
'name': 'k',
195-
'comment': 'b',
196-
'string': 'm',
197-
'error': 'r',
198-
'number': 'G',
199-
'operator': 'B',
200-
'punctuation': 'g',
201-
'token': 'C',
202-
'background': 'w',
203-
'output': 'k',
204-
'main': 'c',
205-
'paren': 'R',
206-
'prompt': 'b',
207-
'prompt_more': 'g',
208-
}
209-
210186
if color_scheme_name == 'default':
211187
struct.color_scheme = default_colors
212188
else:
@@ -230,22 +206,6 @@ def loadini(struct, configfile):
230206
(color_scheme_name, ))
231207
sys.exit(1)
232208

233-
if color_gtk_scheme_name == 'default':
234-
struct.color_gtk_scheme = default_gtk_colors
235-
else:
236-
struct.color_gtk_scheme = dict()
237-
# Note: This is a new config option, hence we don't have a
238-
# fallback directory.
239-
path = os.path.expanduser(os.path.join(get_config_home(),
240-
color_gtk_scheme_name + '.theme'))
241-
242-
try:
243-
load_theme(struct, path, struct.color_gtk_scheme, default_colors)
244-
except EnvironmentError:
245-
sys.stderr.write("Could not load gtk theme '%s'.\n" %
246-
(color_gtk_scheme_name, ))
247-
sys.exit(1)
248-
249209
# checks for valid key configuration this part still sucks
250210
for key in (struct.pastebin_key, struct.save_key):
251211
key_dispatch[key]

0 commit comments

Comments
 (0)
X Tutup