From 1d7e8bcb31e30e3ee59ca0af533b20863b004ff9 Mon Sep 17 00:00:00 2001 From: coderkun Date: Sat, 31 Jan 2015 13:35:14 +0100 Subject: [PATCH] remove unused codes --- gui/gtk.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/gui/gtk.py b/gui/gtk.py index a544cbd..64d95c4 100755 --- a/gui/gtk.py +++ b/gui/gtk.py @@ -308,8 +308,6 @@ class Window(Gtk.ApplicationWindow): self._mcg.load_albums() self._mcg.get_status() else: - # if error: - # GObject.idle_add(self._show_error, str(error)) GObject.idle_add(self._connect_disconnected) @@ -518,13 +516,11 @@ class HeaderBar(mcg.Base, Gtk.HeaderBar): def set_play(self): - #self._buttons[HeaderBar.SIGNAL_PLAYPAUSE].set_stock_id(Gtk.STOCK_MEDIA_PLAY) with self._buttons[HeaderBar.SIGNAL_PLAYPAUSE].handler_block(self._button_handlers[HeaderBar.SIGNAL_PLAYPAUSE]): self._buttons[HeaderBar.SIGNAL_PLAYPAUSE].set_active(True) def set_pause(self): - #self._buttons[HeaderBar.SIGNAL_PLAYPAUSE].set_stock_id(Gtk.STOCK_MEDIA_PAUSE) with self._buttons[HeaderBar.SIGNAL_PLAYPAUSE].handler_block(self._button_handlers[HeaderBar.SIGNAL_PLAYPAUSE]): self._buttons[HeaderBar.SIGNAL_PLAYPAUSE].set_active(False) @@ -668,9 +664,6 @@ class ConnectionPanel(Panel, Gtk.VBox): self._password_entry.connect('focus-out-event', self.on_password_entry_outfocused) self._image_dir_entry.connect('focus-out-event', self.on_image_dir_entry_outfocused) - # Actions - #self._load_profiles() - def get_name(self): return 'connection' @@ -945,7 +938,7 @@ class CoverPanel(Panel, Gtk.VBox): """ pixbuf = self._cover_pixbuf size = self._cover_scroll.get_allocation() - ## Check pixelbuffer + # Check pixelbuffer if pixbuf is None: return