Commit d1207b73 authored by Peter Shinners's avatar Peter Shinners Committed by Vadim Rutkovsky

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
parent b52c8852
......@@ -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)
......
......@@ -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):
......
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment