[longomatch] Allow detaching the player using playlists
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Allow detaching the player using playlists
- Date: Sat, 5 Oct 2013 18:03:31 +0000 (UTC)
commit c50ab3ba9db2b2738f680f8d9f7e2fad3a0927e2
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sat Oct 5 20:02:39 2013 +0200
Allow detaching the player using playlists
LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs | 2 +-
LongoMatch.GUI/Gui/MainWindow.cs | 14 ++++++++------
2 files changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs b/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs
index b8b1665..7f61407 100644
--- a/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs
+++ b/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs
@@ -280,7 +280,7 @@ namespace LongoMatch.Gui
segmentStopTime = stop;
player.LogoMode = false;
Rate = rate;
- detachbutton.Sensitive = false;
+ detachbutton.Sensitive = true;
}
public void Close() {
diff --git a/LongoMatch.GUI/Gui/MainWindow.cs b/LongoMatch.GUI/Gui/MainWindow.cs
index 330682d..44b231e 100644
--- a/LongoMatch.GUI/Gui/MainWindow.cs
+++ b/LongoMatch.GUI/Gui/MainWindow.cs
@@ -352,13 +352,15 @@ namespace LongoMatch.Gui
playerWindow.Show();
playercapturer.Reparent(box);
- buttonswidget.Visible = true;
- timeline.Visible = true;
- if (Config.UseGameUnits) {
- guTimeline.Visible = true;
- gameunitstaggerwidget1.Visible = true;
- }
videowidgetsbox.Visible = false;
+ if (openedProject != null) {
+ buttonswidget.Visible = true;
+ timeline.Visible = true;
+ if (Config.UseGameUnits) {
+ guTimeline.Visible = true;
+ gameunitstaggerwidget1.Visible = true;
+ }
+ }
} else {
ToggleAction action;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]