gnome-subtitles r1107 - in trunk: . src/Glade src/GnomeSubtitles/Dialog
- From: pcastro svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-subtitles r1107 - in trunk: . src/Glade src/GnomeSubtitles/Dialog
- Date: Wed, 31 Dec 2008 02:12:34 +0000 (UTC)
Author: pcastro
Date: Wed Dec 31 02:12:34 2008
New Revision: 1107
URL: http://svn.gnome.org/viewvc/gnome-subtitles?rev=1107&view=rev
Log:
Set the Remove Button sensitivity according to selection.
Show the timings according to the timing mode.
Modified:
trunk/gnome-subtitles.mdp
trunk/src/Glade/TimingsSynchronizeDialog.glade
trunk/src/GnomeSubtitles/Dialog/TimingsSynchronizeDialog.cs
Modified: trunk/gnome-subtitles.mdp
==============================================================================
--- trunk/gnome-subtitles.mdp (original)
+++ trunk/gnome-subtitles.mdp Wed Dec 31 02:12:34 2008
@@ -138,7 +138,7 @@
<File name="src/GnomeSubtitles/Ui/VideoPreview/Exceptions/PlayerCouldNotInitiateEngineException.cs" subtype="Code" buildaction="Compile" />
<File name="src/GnomeSubtitles/Execution/ConfigureDefines.cs" subtype="Code" buildaction="Compile" />
<File name="src/GnomeSubtitles/Ui/VideoPreview/SubtitleOverlay.cs" subtype="Code" buildaction="Compile" />
- <File name="src/GnomeSubtitles/Dialog/SyncPoints.cs" subtype="Code" buildaction="Compile" />
+ <File name="src/GnomeSubtitles/Core/SyncPoints.cs" subtype="Code" buildaction="Compile" />
</Contents>
<References>
<ProjectReference type="Gac" localcopy="True" refto="gtk-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
Modified: trunk/src/Glade/TimingsSynchronizeDialog.glade
==============================================================================
--- trunk/src/Glade/TimingsSynchronizeDialog.glade (original)
+++ trunk/src/Glade/TimingsSynchronizeDialog.glade Wed Dec 31 02:12:34 2008
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
-<!--Generated with glade3 3.4.5 on Tue Dec 30 22:57:54 2008 -->
+<!--Generated with glade3 3.4.5 on Wed Dec 31 02:06:51 2008 -->
<glade-interface>
<widget class="GtkDialog" id="dialog">
<property name="border_width">5</property>
@@ -83,7 +83,7 @@
</packing>
</child>
<child>
- <widget class="GtkButton" id="removeButton">
+ <widget class="GtkButton" id="buttonRemove">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">True</property>
Modified: trunk/src/GnomeSubtitles/Dialog/TimingsSynchronizeDialog.cs
==============================================================================
--- trunk/src/GnomeSubtitles/Dialog/TimingsSynchronizeDialog.cs (original)
+++ trunk/src/GnomeSubtitles/Dialog/TimingsSynchronizeDialog.cs Wed Dec 31 02:12:34 2008
@@ -28,7 +28,7 @@
public class TimingsSynchronizeDialog : GladeDialog {
private TimingMode timingMode = TimingMode.Times;
- private SyncPoints syncPoints = new SyncPoints();
+ private GnomeSubtitles.Core.SyncPoints syncPoints = new GnomeSubtitles.Core.SyncPoints();
private TreeViewColumn numberCol = null;
private TreeViewColumn currentStartCol = null;
private TreeViewColumn correctStartCol = null;
@@ -38,8 +38,11 @@
/* Widgets */
[WidgetAttribute] private TreeView tree = null;
+ [WidgetAttribute] private Button buttonRemove = null;
public TimingsSynchronizeDialog () : base(gladeFilename){
+ this.timingMode = Base.TimingMode;
+
CreateColumns();
SetModel();
ConnectHandlers();
@@ -98,7 +101,8 @@
}
private void OnSelectionChanged (object o, EventArgs args) {
- System.Console.WriteLine(o);
+ TreeSelection selection = (o as TreeSelection);
+ buttonRemove.Sensitive = (selection.CountSelectedRows() > 0);
}
private void OnAdd (object o, EventArgs args) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]