[gnome-music/freeze-break: 8/107] Make pep8 happy and remove remaining stuff



commit 13e2490d306a0f2e5b0ff5d3b34880045907f801
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Tue Aug 6 16:03:21 2013 +0200

    Make pep8 happy and remove remaining stuff

 gnomemusic/searchbar.py |    4 ----
 gnomemusic/toolbar.py   |    1 +
 gnomemusic/window.py    |    4 ++--
 3 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/gnomemusic/searchbar.py b/gnomemusic/searchbar.py
index 3fd1fe7..70d368d 100644
--- a/gnomemusic/searchbar.py
+++ b/gnomemusic/searchbar.py
@@ -1,8 +1,4 @@
 from gi.repository import Gtk
-from gi.repository import Gdk
-from gi.repository import Gd
-from gi.repository import GObject
-from gnomemusic.view import ViewContainer
 
 
 class Searchbar(Gtk.SearchBar):
diff --git a/gnomemusic/toolbar.py b/gnomemusic/toolbar.py
index 652282a..e5b36f6 100644
--- a/gnomemusic/toolbar.py
+++ b/gnomemusic/toolbar.py
@@ -36,6 +36,7 @@ else:
     from gi.repository.Gd import StackSwitcher
 from gnomemusic.searchbar import Searchbar
 
+
 class ToolbarState:
     SINGLE = 0
     ALBUMS = 1
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index 1265611..fadd5fe 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -47,6 +47,7 @@ else:
 
 
 class Window(Gtk.ApplicationWindow):
+
     def __init__(self, app):
         Gtk.ApplicationWindow.__init__(self,
                                        application=app,
@@ -125,7 +126,6 @@ class Window(Gtk.ApplicationWindow):
 
             self.toolbar.set_stack(self._stack)
             self.toolbar.searchbar.show()
-            self.toolbar._search_button.bind_property("active", self.toolbar.searchbar, 
"search-mode-enabled", GObject.BindingFlags.BIDIRECTIONAL)
 
             self._on_notify_model_id = self._stack.connect('notify::visible-child', self._on_notify_mode)
             self.connect('destroy', self._notify_mode_disconnect)
@@ -144,7 +144,7 @@ class Window(Gtk.ApplicationWindow):
         self.show()
 
     def _on_key_press(self, widget, event):
-        if event.keyval == 102: # Ctrl-f
+        if event.keyval == 102:  # Ctrl-f
             self.toolbar.searchbar.set_property('search-mode-enabled', True)
 
     def _notify_mode_disconnect(self, data=None):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]