[gnome-tweak-tool] cleanup: Remove trailing spaces
- From: Jeremy Bicha <jbicha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tweak-tool] cleanup: Remove trailing spaces
- Date: Thu, 15 Jun 2017 16:53:41 +0000 (UTC)
commit ca7cc3f2c470882663111432181fea5964c926fd
Author: Jeremy Bicha <jbicha ubuntu com>
Date: Thu Jun 15 12:53:19 2017 -0400
cleanup: Remove trailing spaces
gtweak/tweaks/tweak_group_appearance.py | 2 +-
gtweak/tweaks/tweak_group_keymouse.py | 4 ++--
gtweak/tweaks/tweak_group_shell_extensions.py | 19 +++++++++----------
gtweak/tweaks/tweak_group_startup.py | 2 +-
gtweak/tweaks/tweak_group_test.py | 2 +-
gtweak/tweaks/tweak_group_xkb.py | 2 +-
6 files changed, 15 insertions(+), 16 deletions(-)
---
diff --git a/gtweak/tweaks/tweak_group_appearance.py b/gtweak/tweaks/tweak_group_appearance.py
index 3e02c74..ccadefc 100644
--- a/gtweak/tweaks/tweak_group_appearance.py
+++ b/gtweak/tweaks/tweak_group_appearance.py
@@ -62,7 +62,7 @@ class GtkThemeSwitcher(GSettingsComboTweak):
class IconThemeSwitcher(GSettingsComboTweak):
def __init__(self, **options):
GSettingsComboTweak.__init__(self,
- _("Icons"),
+ _("Icons"),
"org.gnome.desktop.interface",
"icon-theme",
make_combo_list_with_default(self._get_valid_icon_themes(), "Adwaita"),
diff --git a/gtweak/tweaks/tweak_group_keymouse.py b/gtweak/tweaks/tweak_group_keymouse.py
index 08ecf05..7b4a29b 100644
--- a/gtweak/tweaks/tweak_group_keymouse.py
+++ b/gtweak/tweaks/tweak_group_keymouse.py
@@ -279,8 +279,8 @@ TWEAK_GROUPS = [
"accel-profile",
schema_filename="org.gnome.desktop.peripherals.gschema.xml"),
GSettingsSwitchTweak(_("Pointer Location"),
- "org.gnome.settings-daemon.peripherals.mouse",
- "locate-pointer",
+ "org.gnome.settings-daemon.peripherals.mouse",
+ "locate-pointer",
schema_filename="org.gnome.settings-daemon.peripherals.gschema.xml",
desc=_("Press the Ctrl key to highlight the pointer.")),
GSettingsSwitchTweak(_("Middle Click Paste"),
diff --git a/gtweak/tweaks/tweak_group_shell_extensions.py b/gtweak/tweaks/tweak_group_shell_extensions.py
index b0ed587..5a6fe4d 100644
--- a/gtweak/tweaks/tweak_group_shell_extensions.py
+++ b/gtweak/tweaks/tweak_group_shell_extensions.py
@@ -81,7 +81,7 @@ class _ShellExtensionTweak(Gtk.ListBoxRow, Tweak):
self.hbox = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL)
self.hbox.props.border_width = 10
self.hbox.props.spacing = 12
-
+
self._shell = shell
state = ext.get("state")
uuid = ext["uuid"]
@@ -91,7 +91,6 @@ class _ShellExtensionTweak(Gtk.ListBoxRow, Tweak):
shell._settings.bind("disable-user-extensions", self,
"sensitive", Gio.SettingsBindFlags.INVERT_BOOLEAN)
-
vbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
lbl_name = Gtk.Label(xalign=0.0)
name_markup = GLib.markup_escape_text(ext["name"].lower().capitalize())
@@ -99,11 +98,11 @@ class _ShellExtensionTweak(Gtk.ListBoxRow, Tweak):
lbl_desc = _ExtensionDescriptionLabel(xalign=0.0, yalign=0.0, wrap=True, lines=2)
desc = GLib.markup_escape_text(ext["description"].lower().capitalize().split('\n')[0])
lbl_desc.set_markup("<span foreground='#A19C9C' size='small'>"+desc+"</span>")
- lbl_desc.props.ellipsize = Pango.EllipsizeMode.END
-
+ lbl_desc.props.ellipsize = Pango.EllipsizeMode.END
+
vbox.pack_start(lbl_name, False, False, 0)
vbox.pack_start(lbl_desc, False, False, 0)
-
+
self.hbox.pack_start(vbox, True, True, 10)
info = None
@@ -149,7 +148,7 @@ class _ShellExtensionTweak(Gtk.ListBoxRow, Tweak):
de = DisableExtension()
de.connect('disable-extension', self._on_disable_extension, sw)
-
+
self.add(self.hbox)
self.widget_for_size_group = None
@@ -181,18 +180,18 @@ class _ShellExtensionTweak(Gtk.ListBoxRow, Tweak):
GLib.Variant('(sava{sv})',
('details', [GLib.Variant('(ss)', (self._app_id, ''))], {})),
None, 0, -1, None)
-
+
def reply_handler(self, proxy_object, result, user_data):
if result == 's':
user_data.hide()
- self.set_sensitive(True)
+ self.set_sensitive(True)
def error_handler(self, proxy_object, result, user_data):
user_data.set_label(_("Error"))
print(result)
def add_update_button(self, uuid):
- updateButton = Gtk.Button(_("Update"))
+ updateButton = Gtk.Button(_("Update"))
updateButton.get_style_context().add_class("suggested-action")
updateButton.connect("clicked", self._on_extension_update, uuid)
updateButton.show()
@@ -201,7 +200,7 @@ class _ShellExtensionTweak(Gtk.ListBoxRow, Tweak):
def make_image(self, icon, tip):
image = Gtk.Image.new_from_icon_name(icon, Gtk.IconSize.MENU)
image.set_tooltip_text(tip)
- return image
+ return image
class ShellExtensionTweakGroup(ListBoxTweakGroup):
def __init__(self):
diff --git a/gtweak/tweaks/tweak_group_startup.py b/gtweak/tweaks/tweak_group_startup.py
index ed308c4..7bda9b2 100644
--- a/gtweak/tweaks/tweak_group_startup.py
+++ b/gtweak/tweaks/tweak_group_startup.py
@@ -222,7 +222,7 @@ class _StartupTweak(Gtk.ListBoxRow, Tweak):
def __init__(self, df, **options):
Gtk.ListBoxRow.__init__(self)
- Tweak.__init__(self,
+ Tweak.__init__(self,
df.get_name(),
df.get_description(),
**options)
diff --git a/gtweak/tweaks/tweak_group_test.py b/gtweak/tweaks/tweak_group_test.py
index a3a4501..63fa6b0 100644
--- a/gtweak/tweaks/tweak_group_test.py
+++ b/gtweak/tweaks/tweak_group_test.py
@@ -1,4 +1,4 @@
-# This file is part of gnome-tweak-tool.
+# This file is part of gnome-tweak-tool.
# -*- coding: utf-8 -*-
#
# Copyright (c) 2011 John Stowers
diff --git a/gtweak/tweaks/tweak_group_xkb.py b/gtweak/tweaks/tweak_group_xkb.py
index c58e042..cdef9da 100644
--- a/gtweak/tweaks/tweak_group_xkb.py
+++ b/gtweak/tweaks/tweak_group_xkb.py
@@ -166,7 +166,7 @@ class TypingTweakGroup(Gtk.Box):
self.loaded = True
except GSettingsMissingError:
logging.info("Typing missing schema %s" % self.XKB_GSETTINGS_SCHEMA)
- self.loaded = False
+ self.loaded = False
except AttributeError:
logging.warning("Typing missing GnomeDesktop.gir with Xkb support")
self.loaded = False
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]