[rygel/config] Exit on delete event on PreferencesDialog



commit ea9687b90909feb11166f530eccda41b7b7ceb2c
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Fri Apr 24 16:41:38 2009 +0300

    Exit on delete event on PreferencesDialog
---
 src/ui/rygel-preferences-dialog.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/ui/rygel-preferences-dialog.vala b/src/ui/rygel-preferences-dialog.vala
index 83e479e..f20bb06 100644
--- a/src/ui/rygel-preferences-dialog.vala
+++ b/src/ui/rygel-preferences-dialog.vala
@@ -43,6 +43,10 @@ public class Rygel.PreferencesDialog : Dialog {
         this.add_button (STOCK_OK, ResponseType.ACCEPT);
 
         this.response += this.on_response;
+        this.delete_event += (dialog, event) => {
+                                Gtk.main_quit ();
+                                return false;
+        };
 
         this.show_all ();
     }



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