[gnome-music/freeze-break: 79/107] widgets: Emit response signal in PlaylistDialog when a button is clicked



commit 20599f55eda8b17e2806e79ff7f56d16ff27b480
Author: Arnel A. Borja <arnelborja src gnome org>
Date:   Fri Sep 6 23:15:19 2013 +0800

    widgets: Emit response signal in PlaylistDialog when a button is clicked

 gnomemusic/widgets.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/widgets.py b/gnomemusic/widgets.py
index 6b34933..f51960b 100644
--- a/gnomemusic/widgets.py
+++ b/gnomemusic/widgets.py
@@ -654,10 +654,10 @@ class PlaylistDialog():
         self.model.set(add_playlist_iter, [0, 1], [_("New Playlist"), True])
 
     def _on_selection(self, select_button):
-        pass
+        self.dialog_box.response(Gtk.ResponseType.ACCEPT)
 
     def _on_cancel_button_clicked(self, cancel_button):
-        self.dialog_box.destroy()
+        self.dialog_box.response(Gtk.ResponseType.REJECT)
 
     def _on_item_activated(self, view, path, column):
         _iter = self.model.get_iter(path)


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