banshee r4842 - in trunk/banshee: . src/Core/Banshee.ThickClient/Banshee.Equalizer.Gui
- From: gburt svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r4842 - in trunk/banshee: . src/Core/Banshee.ThickClient/Banshee.Equalizer.Gui
- Date: Mon, 17 Nov 2008 06:06:47 +0000 (UTC)
Author: gburt
Date: Mon Nov 17 06:06:46 2008
New Revision: 4842
URL: http://svn.gnome.org/viewvc/banshee?rev=4842&view=rev
Log:
2008-11-17 Gabriel Burt <gabriel burt gmail com>
* src/Core/Banshee.ThickClient/Banshee.Equalizer.Gui/EqualizerWindow.cs:
Patch from Erik Schmidt adding support for hitting Esc to close the
equalizer dialog (BGO #552818).
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Equalizer.Gui/EqualizerWindow.cs
Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Equalizer.Gui/EqualizerWindow.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Equalizer.Gui/EqualizerWindow.cs (original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Equalizer.Gui/EqualizerWindow.cs Mon Nov 17 06:06:46 2008
@@ -127,11 +127,20 @@
limits.MinHeight = SizeRequest ().Height;
limits.MaxHeight = Gdk.Screen.Default.Height;
SetGeometryHints (this, limits, Gdk.WindowHints.MaxSize);
-
+
+ KeyPressEvent += OnKeyPress;
+
Add (box);
box.ShowAll ();
}
-
+
+ protected void OnKeyPress (object o, Gtk.KeyPressEventArgs evnt)
+ {
+ if (evnt.Event.Key == Gdk.Key.Escape) {
+ Destroy ();
+ }
+ }
+
protected override void OnDestroyed ()
{
instance = null;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]