[banshee/better-now-playing: 1/3] [NowPlaying] Remove unneeded variable from NowPlayingInterface
- From: Alex Launi <alexlauni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/better-now-playing: 1/3] [NowPlaying] Remove unneeded variable from NowPlayingInterface
- Date: Tue, 25 May 2010 00:21:58 +0000 (UTC)
commit 8b0c3de8e20021cde81faf14c87c8509100161ca
Author: Alex Launi <alex launi gmail com>
Date: Mon May 24 15:36:12 2010 -0400
[NowPlaying] Remove unneeded variable from NowPlayingInterface
Don't bother saving GtkElementsService to a variable. It's only
used for the .PrimaryWindow property, which we save to a variable
anyway.
.../Banshee.NowPlaying/NowPlayingInterface.cs | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/Extensions/Banshee.NowPlaying/Banshee.NowPlaying/NowPlayingInterface.cs b/src/Extensions/Banshee.NowPlaying/Banshee.NowPlaying/NowPlayingInterface.cs
index b6ce7cb..3d4261d 100644
--- a/src/Extensions/Banshee.NowPlaying/Banshee.NowPlaying/NowPlayingInterface.cs
+++ b/src/Extensions/Banshee.NowPlaying/Banshee.NowPlaying/NowPlayingInterface.cs
@@ -52,8 +52,7 @@ namespace Banshee.NowPlaying
public NowPlayingInterface ()
{
- GtkElementsService service = ServiceManager.Get<GtkElementsService> ();
- primary_window = service.PrimaryWindow;
+ primary_window = (ServiceManager.Get<GtkElementsService> ()).PrimaryWindow;
Contents = new NowPlayingContents ();
Contents.ButtonPressEvent += (o, a) => {
@@ -71,7 +70,7 @@ namespace Banshee.NowPlaying
// widget from being completely destroyed, causing problems with
// its internal windowing and GstXOverlay. It's also conveniently
// the window that is used to do fullscreen video. Sweeeeeeeeeet.
- video_window = new FullscreenWindow (service.PrimaryWindow);
+ video_window = new FullscreenWindow (primary_window);
video_window.Hidden += OnFullscreenWindowHidden;
video_window.Realize ();
video_window.Add (Contents);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]