From a265fe92489ae671842999190b52a645c3cc16f2 Mon Sep 17 00:00:00 2001 From: bryce Date: Tue, 2 Jun 2015 13:29:12 -0700 Subject: [PATCH] whitespace cleanup --- terminatorlib/preferences.glade | 2 +- terminatorlib/prefseditor.py | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/terminatorlib/preferences.glade b/terminatorlib/preferences.glade index dcd59096..88311192 100644 --- a/terminatorlib/preferences.glade +++ b/terminatorlib/preferences.glade @@ -756,7 +756,7 @@ True False 0.50999999046325684 - Hide size from title + Hide size from title 13 diff --git a/terminatorlib/prefseditor.py b/terminatorlib/prefseditor.py index 9e3c684d..b46f6b47 100755 --- a/terminatorlib/prefseditor.py +++ b/terminatorlib/prefseditor.py @@ -1,5 +1,5 @@ #!/usr/bin/python -"""Preferences Editor for Terminator. +"""Preferences Editor for Terminator. Load a UIBuilder config file, display it, populate it with our current config, then optionally read that back out and @@ -37,7 +37,7 @@ class PrefsEditor: layouteditor = None previous_layout_selection = None previous_profile_selection = None - colorschemevalues = {'black_on_yellow': 0, + colorschemevalues = {'black_on_yellow': 0, 'black_on_white': 1, 'grey_on_black': 2, 'green_on_black': 3, @@ -157,7 +157,7 @@ class PrefsEditor: self.builder = gtk.Builder() self.keybindings = Keybindings() 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__) librarypath = os.path.join(head, 'preferences.glade') gladefile = open(librarypath, 'r') @@ -325,7 +325,7 @@ class PrefsEditor: (keyval, mask) = self.keybindings._parsebinding(value) except KeymapError: pass - liststore.append([keybinding, self.keybindingnames[keybinding], + liststore.append([keybinding, self.keybindingnames[keybinding], keyval, mask]) ## Plugins tab @@ -503,7 +503,7 @@ class PrefsEditor: 'title_inactive_fg_color', 'title_inactive_bg_color']: widget = guiget(bit) widget.set_color(gtk.gdk.Color(self.config[bit])) - # Inactive terminal shading + # Inactive terminal shading widget = guiget('inactive_color_offset') widget.set_value(float(self.config['inactive_color_offset'])) # Use custom URL handler @@ -596,7 +596,7 @@ class PrefsEditor: for encoding in encodings: if encoding[1] is None: continue - + label = "%s %s" % (encoding[2], encoding[1]) rowiter = encodingstore.append([label, encoding[1]]) @@ -662,7 +662,7 @@ class PrefsEditor: def on_title_hide_sizetextcheck_toggled(self, widget): """Window geometry setting changed""" self.config['title_hide_sizetext'] = widget.get_active() - self.config.save() + self.config.save() def on_always_split_with_profile_toggled(self, widget): """Always split with profile setting changed""" @@ -981,7 +981,7 @@ class PrefsEditor: def on_focuscombo_changed(self, widget): """Focus type changed""" - selected = widget.get_active() + selected = widget.get_active() if selected == 1: value = 'click' elif selected == 2: @@ -1040,7 +1040,7 @@ class PrefsEditor: res = model.append([newprofile, True]) if 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) self.layouteditor.update_profiles() @@ -1254,7 +1254,7 @@ class PrefsEditor: (oldname, newtext)) self.config.rename_profile(oldname, newtext) self.config.save() - + widget = self.builder.get_object('profilelist') model = widget.get_model() itera = model.get_iter(path) @@ -1291,7 +1291,7 @@ class PrefsEditor: dbg('Changing %s to %s' % (oldname, newtext)) self.config.rename_layout(oldname, newtext) self.config.save() - + widget = self.builder.get_object('layoutlist') model = widget.get_model() itera = model.get_iter(path)