[banshee] [HigMessageDialog] Use Default property instead of an accelerator (bgo#599495)



commit f5e2044ba6f1e80cf19c739b3cd877ce946c5f43
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date:   Thu Nov 12 18:15:53 2009 +1100

    [HigMessageDialog] Use Default property instead of an accelerator (bgo#599495)

 .../Banshee.Widgets/HigMessageDialog.cs            |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/src/Core/Banshee.Widgets/Banshee.Widgets/HigMessageDialog.cs b/src/Core/Banshee.Widgets/Banshee.Widgets/HigMessageDialog.cs
index b179438..37de818 100644
--- a/src/Core/Banshee.Widgets/Banshee.Widgets/HigMessageDialog.cs
+++ b/src/Core/Banshee.Widgets/Banshee.Widgets/HigMessageDialog.cs
@@ -30,7 +30,6 @@ namespace Banshee.Widgets
 {
     public class HigMessageDialog : Gtk.Dialog
     {    
-        private Gtk.AccelGroup accel_group;
         private Gtk.Image image;
         private Gtk.VBox label_vbox;
         private Gtk.Label message_label;
@@ -52,9 +51,6 @@ namespace Banshee.Widgets
             VBox.Spacing = 12;
             ActionArea.Layout = Gtk.ButtonBoxStyle.End;
 
-            accel_group = new Gtk.AccelGroup ();
-            AddAccelGroup (accel_group);
-
             Gtk.HBox hbox = new Gtk.HBox (false, 12);
             hbox.BorderWidth = 5;
             hbox.Show ();
@@ -175,13 +171,9 @@ namespace Banshee.Widgets
             AddActionWidget (button, response);
 
             if (isDefault) {
+                Default = button;
                 DefaultResponse = response;
                 button.GrabDefault ();
-                button.AddAccelerator ("activate",
-                               accel_group,
-                               (uint) Gdk.Key.Return, 
-                               0,
-                               Gtk.AccelFlags.Visible);
             }
         }
 



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