diff options
author | Aaron Bockover <abock@src.gnome.org> | 2005-08-21 03:54:26 +0000 |
---|---|---|
committer | Aaron Bockover <abock@src.gnome.org> | 2005-08-21 03:54:26 +0000 |
commit | 3cb5a3dfa924feefb0e11cfbb7f1a5ce1bc0790a (patch) | |
tree | 76741b0d1a1f2752525c4af1e425aa370ec411c8 | |
parent | fa321ecebf93deae2a33b5e3f9fc8b7ec622d9c4 (diff) |
Viewport fixBANSHEE_0_8_6
-rw-r--r-- | src/PlayerInterface.cs | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/src/PlayerInterface.cs b/src/PlayerInterface.cs index 4991b2ba6..c24116ee5 100644 --- a/src/PlayerInterface.cs +++ b/src/PlayerInterface.cs @@ -70,7 +70,7 @@ namespace Banshee private Tooltips toolTips; private Hashtable playlistMenuMap; private ProgressBar ipodDiskUsageBar; - private Label sourceViewLoading; + private Viewport sourceViewLoadingVP; public Gtk.Window Window { @@ -209,14 +209,17 @@ namespace Banshee new VolumeButton.VolumeChangedHandler(OnVolumeScaleChanged); // Source View - sourceView = new SourceView(); - sourceViewLoading = new Label(); + Label sourceViewLoading = new Label(); sourceViewLoading.Yalign = 0.15f; sourceViewLoading.Xalign = 0.5f; sourceViewLoading.Markup = "<big><i>Loading...</i></big>"; - sourceViewLoading.Show(); - ((Gtk.ScrolledWindow)gxml["SourceContainer"]).Add(sourceViewLoading); - sourceView.Show(); + sourceViewLoadingVP = new Viewport(); + sourceViewLoadingVP.ShadowType = ShadowType.None; + sourceViewLoadingVP.Add(sourceViewLoading); + sourceViewLoadingVP.ShowAll(); + ((Gtk.ScrolledWindow)gxml["SourceContainer"]).Add(sourceViewLoadingVP); + + sourceView = new SourceView(); sourceView.SourceChanged += OnSourceChanged; sourceView.ButtonPressEvent += OnSourceViewButtonPressEvent; sourceView.DragMotion += OnSourceViewDragMotion; @@ -428,8 +431,10 @@ namespace Banshee startupLoadReady = false; sourceView.Sensitive = true; - ((Gtk.ScrolledWindow)gxml["SourceContainer"]).Remove(sourceViewLoading); + + ((Gtk.ScrolledWindow)gxml["SourceContainer"]).Remove(sourceViewLoadingVP); ((Gtk.ScrolledWindow)gxml["SourceContainer"]).Add(sourceView); + sourceView.Show(); sourceView.SelectLibraryForce(); } |