[banshee] [Nereid] Make --smooth-scroll affect the SourceView
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] [Nereid] Make --smooth-scroll affect the SourceView
- Date: Sun, 14 Nov 2010 20:29:50 +0000 (UTC)
commit cd3e48a3baffdd92138c71ae64539d613d084742
Author: Gabriel Burt <gabriel burt gmail com>
Date: Sun Nov 14 14:29:07 2010 -0600
[Nereid] Make --smooth-scroll affect the SourceView
src/Clients/Nereid/Nereid/PlayerInterface.cs | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/src/Clients/Nereid/Nereid/PlayerInterface.cs b/src/Clients/Nereid/Nereid/PlayerInterface.cs
index 8e54bc0..ba2614c 100644
--- a/src/Clients/Nereid/Nereid/PlayerInterface.cs
+++ b/src/Clients/Nereid/Nereid/PlayerInterface.cs
@@ -285,9 +285,15 @@ namespace Nereid
Gdk.Colormap.System.AllocColor (ref color, true, true);
source_view.ModifyBase (StateType.Normal, color);
} else {
- var hyena_source_scroll = new Hyena.Widgets.ScrolledWindow ();
- hyena_source_scroll.AddWithFrame (source_view);
- source_scroll = hyena_source_scroll;
+ Hyena.Widgets.ScrolledWindow window;
+ if (ApplicationContext.CommandLine.Contains ("smooth-scroll")) {
+ window = new Hyena.Widgets.SmoothScrolledWindow ();
+ } else {
+ window = new Hyena.Widgets.ScrolledWindow ();
+ }
+
+ window.AddWithFrame (source_view);
+ source_scroll = window;
}
composite_view.TrackView.HeaderVisible = false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]