whitespace cleanup
This commit is contained in:
parent
3d67bd3226
commit
a265fe9248
|
@ -756,7 +756,7 @@
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="xalign">0.50999999046325684</property>
|
<property name="xalign">0.50999999046325684</property>
|
||||||
<property name="label" translatable="yes">Hide size from title</property>
|
<property name="label" translatable="yes">Hide size from title</property>
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="top_attach">13</property>
|
<property name="top_attach">13</property>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
"""Preferences Editor for Terminator.
|
"""Preferences Editor for Terminator.
|
||||||
|
|
||||||
Load a UIBuilder config file, display it,
|
Load a UIBuilder config file, display it,
|
||||||
populate it with our current config, then optionally read that back out and
|
populate it with our current config, then optionally read that back out and
|
||||||
|
@ -37,7 +37,7 @@ class PrefsEditor:
|
||||||
layouteditor = None
|
layouteditor = None
|
||||||
previous_layout_selection = None
|
previous_layout_selection = None
|
||||||
previous_profile_selection = None
|
previous_profile_selection = None
|
||||||
colorschemevalues = {'black_on_yellow': 0,
|
colorschemevalues = {'black_on_yellow': 0,
|
||||||
'black_on_white': 1,
|
'black_on_white': 1,
|
||||||
'grey_on_black': 2,
|
'grey_on_black': 2,
|
||||||
'green_on_black': 3,
|
'green_on_black': 3,
|
||||||
|
@ -157,7 +157,7 @@ class PrefsEditor:
|
||||||
self.builder = gtk.Builder()
|
self.builder = gtk.Builder()
|
||||||
self.keybindings = Keybindings()
|
self.keybindings = Keybindings()
|
||||||
try:
|
try:
|
||||||
# Figure out where our library is on-disk so we can open our
|
# Figure out where our library is on-disk so we can open our
|
||||||
(head, _tail) = os.path.split(config.__file__)
|
(head, _tail) = os.path.split(config.__file__)
|
||||||
librarypath = os.path.join(head, 'preferences.glade')
|
librarypath = os.path.join(head, 'preferences.glade')
|
||||||
gladefile = open(librarypath, 'r')
|
gladefile = open(librarypath, 'r')
|
||||||
|
@ -325,7 +325,7 @@ class PrefsEditor:
|
||||||
(keyval, mask) = self.keybindings._parsebinding(value)
|
(keyval, mask) = self.keybindings._parsebinding(value)
|
||||||
except KeymapError:
|
except KeymapError:
|
||||||
pass
|
pass
|
||||||
liststore.append([keybinding, self.keybindingnames[keybinding],
|
liststore.append([keybinding, self.keybindingnames[keybinding],
|
||||||
keyval, mask])
|
keyval, mask])
|
||||||
|
|
||||||
## Plugins tab
|
## Plugins tab
|
||||||
|
@ -503,7 +503,7 @@ class PrefsEditor:
|
||||||
'title_inactive_fg_color', 'title_inactive_bg_color']:
|
'title_inactive_fg_color', 'title_inactive_bg_color']:
|
||||||
widget = guiget(bit)
|
widget = guiget(bit)
|
||||||
widget.set_color(gtk.gdk.Color(self.config[bit]))
|
widget.set_color(gtk.gdk.Color(self.config[bit]))
|
||||||
# Inactive terminal shading
|
# Inactive terminal shading
|
||||||
widget = guiget('inactive_color_offset')
|
widget = guiget('inactive_color_offset')
|
||||||
widget.set_value(float(self.config['inactive_color_offset']))
|
widget.set_value(float(self.config['inactive_color_offset']))
|
||||||
# Use custom URL handler
|
# Use custom URL handler
|
||||||
|
@ -596,7 +596,7 @@ class PrefsEditor:
|
||||||
for encoding in encodings:
|
for encoding in encodings:
|
||||||
if encoding[1] is None:
|
if encoding[1] is None:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
label = "%s %s" % (encoding[2], encoding[1])
|
label = "%s %s" % (encoding[2], encoding[1])
|
||||||
rowiter = encodingstore.append([label, encoding[1]])
|
rowiter = encodingstore.append([label, encoding[1]])
|
||||||
|
|
||||||
|
@ -662,7 +662,7 @@ class PrefsEditor:
|
||||||
def on_title_hide_sizetextcheck_toggled(self, widget):
|
def on_title_hide_sizetextcheck_toggled(self, widget):
|
||||||
"""Window geometry setting changed"""
|
"""Window geometry setting changed"""
|
||||||
self.config['title_hide_sizetext'] = widget.get_active()
|
self.config['title_hide_sizetext'] = widget.get_active()
|
||||||
self.config.save()
|
self.config.save()
|
||||||
|
|
||||||
def on_always_split_with_profile_toggled(self, widget):
|
def on_always_split_with_profile_toggled(self, widget):
|
||||||
"""Always split with profile setting changed"""
|
"""Always split with profile setting changed"""
|
||||||
|
@ -981,7 +981,7 @@ class PrefsEditor:
|
||||||
|
|
||||||
def on_focuscombo_changed(self, widget):
|
def on_focuscombo_changed(self, widget):
|
||||||
"""Focus type changed"""
|
"""Focus type changed"""
|
||||||
selected = widget.get_active()
|
selected = widget.get_active()
|
||||||
if selected == 1:
|
if selected == 1:
|
||||||
value = 'click'
|
value = 'click'
|
||||||
elif selected == 2:
|
elif selected == 2:
|
||||||
|
@ -1040,7 +1040,7 @@ class PrefsEditor:
|
||||||
res = model.append([newprofile, True])
|
res = model.append([newprofile, True])
|
||||||
if res:
|
if res:
|
||||||
path = model.get_path(res)
|
path = model.get_path(res)
|
||||||
treeview.set_cursor(path, focus_column=treeview.get_column(0),
|
treeview.set_cursor(path, focus_column=treeview.get_column(0),
|
||||||
start_editing=True)
|
start_editing=True)
|
||||||
|
|
||||||
self.layouteditor.update_profiles()
|
self.layouteditor.update_profiles()
|
||||||
|
@ -1254,7 +1254,7 @@ class PrefsEditor:
|
||||||
(oldname, newtext))
|
(oldname, newtext))
|
||||||
self.config.rename_profile(oldname, newtext)
|
self.config.rename_profile(oldname, newtext)
|
||||||
self.config.save()
|
self.config.save()
|
||||||
|
|
||||||
widget = self.builder.get_object('profilelist')
|
widget = self.builder.get_object('profilelist')
|
||||||
model = widget.get_model()
|
model = widget.get_model()
|
||||||
itera = model.get_iter(path)
|
itera = model.get_iter(path)
|
||||||
|
@ -1291,7 +1291,7 @@ class PrefsEditor:
|
||||||
dbg('Changing %s to %s' % (oldname, newtext))
|
dbg('Changing %s to %s' % (oldname, newtext))
|
||||||
self.config.rename_layout(oldname, newtext)
|
self.config.rename_layout(oldname, newtext)
|
||||||
self.config.save()
|
self.config.save()
|
||||||
|
|
||||||
widget = self.builder.get_object('layoutlist')
|
widget = self.builder.get_object('layoutlist')
|
||||||
model = widget.get_model()
|
model = widget.get_model()
|
||||||
itera = model.get_iter(path)
|
itera = model.get_iter(path)
|
||||||
|
|
Loading…
Reference in New Issue