[gnome-music/gnome-3-12] Select button should be sensitive only if playlist count is greater than 0.
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/gnome-3-12] Select button should be sensitive only if playlist count is greater than 0.
- Date: Fri, 4 Apr 2014 13:11:35 +0000 (UTC)
commit a6fd00e3fd674a41694f180a4d4ef3ac5d60e24b
Author: Sai Suman Prayaga <suman sai14 gmail com>
Date: Fri Apr 4 14:07:33 2014 +0530
Select button should be sensitive only if playlist count is greater than 0.
gnomemusic/widgets.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gnomemusic/widgets.py b/gnomemusic/widgets.py
index 3f5b3e5..ff34e57 100644
--- a/gnomemusic/widgets.py
+++ b/gnomemusic/widgets.py
@@ -637,6 +637,7 @@ class PlaylistDialog():
self._cancel_button = self.ui.get_object('cancel-button')
self._select_button = self.ui.get_object('select-button')
+ self._select_button.set_sensitive(len(playlist_names) > 0)
self._cancel_button.connect('clicked', self._on_cancel_button_clicked)
self._select_button.connect('clicked', self._on_selection)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]