[gnome-music] Trivial code formatting cleanups
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] Trivial code formatting cleanups
- Date: Mon, 20 Jul 2015 07:58:07 +0000 (UTC)
commit d1207b73afb6992c04c55a1a874f831374deb4a1
Author: Peter Shinners <pete shinners org>
Date: Sun Jul 19 09:12:01 2015 -0700
Trivial code formatting cleanups
Remove mixed tabs and spaces in indents.
Remove trailing semicolons.
Break up one long statement into multiple lines.
https://bugzilla.gnome.org/show_bug.cgi?id=752592
gnomemusic/player.py | 4 ++--
gnomemusic/view.py | 4 ++--
gnomemusic/window.py | 6 +++---
3 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/gnomemusic/player.py b/gnomemusic/player.py
index 82a868f..bf60170 100644
--- a/gnomemusic/player.py
+++ b/gnomemusic/player.py
@@ -259,8 +259,8 @@ class Player(GObject.GObject):
install_ctx = GstPbutils.InstallPluginsContext.new()
if self._gst_plugins_base_check_version(1, 5, 0):
- install_ctx.set_desktop_id('gnome-music.desktop');
- install_ctx.set_confirm_search(confirm_search);
+ install_ctx.set_desktop_id('gnome-music.desktop')
+ install_ctx.set_confirm_search(confirm_search)
startup_id = '_TIME%u' % Gtk.get_current_event_time()
install_ctx.set_startup_notification_id(startup_id)
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index 06f802b..24abc01 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -1369,8 +1369,8 @@ class Search(ViewContainer):
@log
def _no_music_found_callback(self, view):
self.window._stack.set_visible_child_name('emptysearch')
- self.window._stack.get_child_by_name('emptysearch')._artistAlbumsWidget =\
- self._artistAlbumsWidget
+ emptysearch = self.window._stack.get_child_by_name('emptysearch')
+ emptysearch._artistAlbumsWidget = self._artistAlbumsWidget
@log
def _back_button_clicked(self, widget, data=None):
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index 9c243d8..4d8d528 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -448,9 +448,9 @@ class Window(Gtk.ApplicationWindow):
def _on_search_toggled(self, button, data=None):
self.toolbar.searchbar.show_bar(button.get_active(),
self.curr_view != self.views[4])
- if not button.get_active() and \
- (self.curr_view == self.views[4] or self.curr_view == self.views[5])and \
- self.toolbar._state == ToolbarState.MAIN:
+ if (not button.get_active() and
+ (self.curr_view == self.views[4] or self.curr_view == self.views[5]) and
+ self.toolbar._state == ToolbarState.MAIN):
# We should get back to the view before the search
self._stack.set_visible_child(self.views[4].previous_view)
if self.toolbar._selectionMode:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]