[banshee] [SeekDialog] drop glade dependency (bgo#589705)
- From: Aaron Bockover <abock src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee] [SeekDialog] drop glade dependency (bgo#589705)
- Date: Sat, 6 Feb 2010 06:25:44 +0000 (UTC)
commit 4387c49a51de36b9dcc8907498cdf7b6d4117491
Author: Aaron Bockover <abockover novell com>
Date: Sat Feb 6 01:21:25 2010 -0500
[SeekDialog] drop glade dependency (bgo#589705)
.../Banshee.Gui.Dialogs/SeekDialog.cs | 20 ++++++++------------
.../Banshee.Gui/PlaybackActions.cs | 2 +-
2 files changed, 9 insertions(+), 13 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui.Dialogs/SeekDialog.cs b/src/Core/Banshee.ThickClient/Banshee.Gui.Dialogs/SeekDialog.cs
index f644174..a023bfb 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui.Dialogs/SeekDialog.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui.Dialogs/SeekDialog.cs
@@ -5,7 +5,7 @@
// Aaron Bockover <abockover novell com>
// Gabriel Burt <gburt novell com>
//
-// Copyright (C) 2006-2007 Novell, Inc.
+// Copyright 2006-2010 Novell, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@@ -28,30 +28,26 @@
//
using System;
-using System.Collections;
using Mono.Unix;
using Gtk;
-using Glade;
using Banshee.Base;
using Banshee.Gui.Widgets;
namespace Banshee.Gui.Dialogs
{
- public class SeekDialog : GladeDialog
+ public class SeekDialog : BansheeDialog
{
- [Widget] private VBox seek_box;
- private ConnectedSeekSlider seek_slider;
-
- public SeekDialog () : base ("SeekDialog")
+ public SeekDialog () : base (Catalog.GetString ("Seek to Position"))
{
- seek_slider = new ConnectedSeekSlider ();
+ var seek_slider = new ConnectedSeekSlider ();
seek_slider.StreamPositionLabel.FormatString = "<big>{0}</big>";
+ seek_slider.ShowAll ();
- seek_box.PackStart (seek_slider, false, false, 0);
- seek_box.ShowAll ();
+ VBox.PackStart (seek_slider, false, false, 0);
+ AddDefaultCloseButton ();
- Dialog.SetSizeRequest (300, -1);
+ SetSizeRequest (300, -1);
}
}
}
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui/PlaybackActions.cs b/src/Core/Banshee.ThickClient/Banshee.Gui/PlaybackActions.cs
index e7c04b1..6121a09 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui/PlaybackActions.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui/PlaybackActions.cs
@@ -220,7 +220,7 @@ namespace Banshee.Gui
private void OnSeekToAction (object o, EventArgs args)
{
- GladeDialog dialog = new SeekDialog ();
+ var dialog = new SeekDialog ();
dialog.Run ();
dialog.Destroy ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]