gnome-subtitles r1128 - trunk/src/GnomeSubtitles/Ui
- From: pcastro svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-subtitles r1128 - trunk/src/GnomeSubtitles/Ui
- Date: Tue, 10 Mar 2009 02:02:25 +0000 (UTC)
Author: pcastro
Date: Tue Mar 10 02:02:25 2009
New Revision: 1128
URL: http://svn.gnome.org/viewvc/gnome-subtitles?rev=1128&view=rev
Log:
Fixed the way View->Video is selected after video open.
Modified:
trunk/src/GnomeSubtitles/Ui/MainUi.cs
trunk/src/GnomeSubtitles/Ui/Menus.cs
Modified: trunk/src/GnomeSubtitles/Ui/MainUi.cs
==============================================================================
--- trunk/src/GnomeSubtitles/Ui/MainUi.cs (original)
+++ trunk/src/GnomeSubtitles/Ui/MainUi.cs Tue Mar 10 02:02:25 2009
@@ -157,7 +157,6 @@
dialog.Show();
bool toOpen = dialog.WaitForResponse();
if (toOpen) {
- Menus.SetViewVideoActivity(true);
Base.OpenVideo(dialog.Uri);
}
}
Modified: trunk/src/GnomeSubtitles/Ui/Menus.cs
==============================================================================
--- trunk/src/GnomeSubtitles/Ui/Menus.cs (original)
+++ trunk/src/GnomeSubtitles/Ui/Menus.cs Tue Mar 10 02:02:25 2009
@@ -69,10 +69,6 @@
SetSensitivity(WidgetNames.SearchFindPrevious, true);
}
- public void SetViewVideoActivity (bool activity) {
- SetCheckMenuItemActivity(WidgetNames.ViewVideo, activity);
- }
-
public void AddFrameRateVideoTag (float frameRate) {
if (frameRate <= 0)
return;
@@ -147,6 +143,10 @@
SetCheckMenuItemActivity(WidgetNames.ToolsAutocheckSpelling, Base.SpellLanguages.Enabled);
}
+ private void SetViewVideoActivity (bool activity) {
+ SetCheckMenuItemActivity(WidgetNames.ViewVideo, activity);
+ }
+
private void SetDocumentSensitivity (bool documentLoaded) {
/* Set Sensitivity that is equal to the document loaded status */
@@ -473,6 +473,7 @@
private void OnBaseVideoLoaded (Uri videoUri) {
SetVideoSensitivity(true);
SetViewVideoSubtitlesSensitivity();
+ SetViewVideoActivity(true);
}
private void OnBaseVideoUnloaded () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]