banshee r4341 - in trunk/banshee: . src/Core/Banshee.ThickClient/Banshee.Equalizer.Gui
- From: abock svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r4341 - in trunk/banshee: . src/Core/Banshee.ThickClient/Banshee.Equalizer.Gui
- Date: Fri, 8 Aug 2008 23:30:01 +0000 (UTC)
Author: abock
Date: Fri Aug 8 23:30:01 2008
New Revision: 4341
URL: http://svn.gnome.org/viewvc/banshee?rev=4341&view=rev
Log:
2008-08-08 Aaron Bockover <abock gnome org>
* src/Core/Banshee.ThickClient/Banshee.Equalizer.Gui/EqualizerBandScale.cs:
Show the dB value in a tooltip against the band sliders
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Equalizer.Gui/EqualizerBandScale.cs
Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Equalizer.Gui/EqualizerBandScale.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Equalizer.Gui/EqualizerBandScale.cs (original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Equalizer.Gui/EqualizerBandScale.cs Fri Aug 8 23:30:01 2008
@@ -36,6 +36,7 @@
private uint band;
private Scale scale;
private Label label;
+ private object tooltip_host;
public event EventHandler ValueChanged;
@@ -60,6 +61,8 @@
PackStart (scale, false, false, 0);
PackStart (label, false, false, 0);
+
+ tooltip_host = Hyena.Gui.TooltipSetter.CreateHost ();
}
private void OnValueChanged (object o, EventArgs args)
@@ -68,10 +71,12 @@
if(handler != null) {
handler(this, new EventArgs ());
}
+
+ Hyena.Gui.TooltipSetter.Set (tooltip_host, scale, ((int)Math.Round (scale.Value / 10.0)).ToString ());
}
public int Value {
- get { return (int) scale.Value; }
+ get { return (int)Math.Round (scale.Value); }
set { scale.Value = (double) value; }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]