[banshee/gtk3] MiniMode: fix build (track API changes)
- From: AndrÃs Aragoneses <aaragoneses src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/gtk3] MiniMode: fix build (track API changes)
- Date: Thu, 20 Dec 2012 22:06:50 +0000 (UTC)
commit 8c4385cc507113dd974c355391f18b504af5b7e9
Author: Andres G. Aragoneses <knocte gmail com>
Date: Thu Dec 20 22:06:45 2012 +0000
MiniMode: fix build (track API changes)
This class was also using GUI infrastructure dependent on the class
PersistentWindowController, which has changed to be now more GSettings
friendly:
http://git.gnome.org/browse/banshee/commit/?h=gtk3&id=de6cf60f3b924ca77aee8e9fe647c551cb245172
.../Banshee.MiniMode/MiniModeWindow.cs | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/src/Extensions/Banshee.MiniMode/Banshee.MiniMode/MiniModeWindow.cs b/src/Extensions/Banshee.MiniMode/Banshee.MiniMode/MiniModeWindow.cs
index f7960fb..16b3e81 100644
--- a/src/Extensions/Banshee.MiniMode/Banshee.MiniMode/MiniModeWindow.cs
+++ b/src/Extensions/Banshee.MiniMode/Banshee.MiniMode/MiniModeWindow.cs
@@ -44,11 +44,19 @@ using Banshee.Sources.Gui;
using Banshee.MediaEngine;
using Banshee.ServiceStack;
using Banshee.Widgets;
+using Banshee.Configuration;
namespace Banshee.MiniMode
{
public class MiniMode : Banshee.Gui.BaseClientWindow
{
+ const string CONFIG_NAMESPACE = "minimode";
+ static readonly SchemaEntry<int> WidthSchema = WindowConfiguration.NewWidthSchema (CONFIG_NAMESPACE, 0);
+ static readonly SchemaEntry<int> HeightSchema = WindowConfiguration.NewHeightSchema (CONFIG_NAMESPACE, 0);
+ static readonly SchemaEntry<int> XPosSchema = WindowConfiguration.NewXPosSchema (CONFIG_NAMESPACE);
+ static readonly SchemaEntry<int> YPosSchema = WindowConfiguration.NewYPosSchema (CONFIG_NAMESPACE);
+ static readonly SchemaEntry<bool> MaximizedSchema = WindowConfiguration.NewMaximizedSchema (CONFIG_NAMESPACE);
+
private TrackInfoDisplay track_info_display;
private ConnectedVolumeButton volume_button;
private SourceComboBox source_combo_box;
@@ -56,7 +64,9 @@ namespace Banshee.MiniMode
private BaseClientWindow default_main_window;
- public MiniMode (BaseClientWindow defaultMainWindow) : base (Catalog.GetString ("Banshee Media Player"), "minimode", 0, 0)
+ public MiniMode (BaseClientWindow defaultMainWindow) :
+ base (Catalog.GetString ("Banshee Media Player"),
+ new WindowConfiguration (WidthSchema, HeightSchema, XPosSchema, YPosSchema, MaximizedSchema))
{
default_main_window = defaultMainWindow;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]