[banshee/1.5.1-fixes: 32/56] [HigMessageDialog] Use Default property instead of an accelerator (bgo#599495)
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/1.5.1-fixes: 32/56] [HigMessageDialog] Use Default property instead of an accelerator (bgo#599495)
- Date: Mon, 22 Mar 2010 18:06:46 +0000 (UTC)
commit 3d6d05c3f0a5e8dace97f3cbbc35c3804fa6a5f8
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]