← Back to team overview

openshot.code team mailing list archive

[Branch ~openshot.code/openshot/main] Rev 642: Committed a patch from Mael to remove the project length field from save/new project dialog. This...

 

------------------------------------------------------------
revno: 642
fixes bug: https://launchpad.net/bugs/879691
committer: Andy Finch <we.rocked.in79@xxxxxxxxx>
branch nick: openshot
timestamp: Tue 2012-03-20 21:42:43 +0000
message:
  Committed a patch from Mael to remove the project length field from save/new project dialog. This has been redundant for some time.
modified:
  openshot/windows/NewProject.py
  openshot/windows/ui/NewProject.ui


--
lp:openshot
https://code.launchpad.net/~openshot.code/openshot/main

Your team OpenShot Code is subscribed to branch lp:openshot.
To unsubscribe from this branch go to https://code.launchpad.net/~openshot.code/openshot/main/+edit-subscription
=== modified file 'openshot/windows/NewProject.py'
--- openshot/windows/NewProject.py	2011-09-22 22:12:56 +0000
+++ openshot/windows/NewProject.py	2012-03-20 21:42:43 +0000
@@ -77,9 +77,6 @@
 			# init the project name
 			self.txtProjectName.set_text(self.project.name)
 			
-			# init the length textbox	
-			self.spinProjectLength.set_text(str(self.project.sequences[0].length / 60))
-			
 			# init the profile
 			self.set_dropdown_values(self.project.project_type, self.cmbProjectType)
 			
@@ -90,9 +87,6 @@
 			
 			# init the project name
 			self.txtProjectName.set_text(_("Default Project"))
-			
-			# init the length textbox	to 10 minutes
-			self.spinProjectLength.set_text("10")
 
 
 
@@ -210,7 +204,6 @@
 		localName = str.strip(self.txtProjectName.get_text())
 		localFolder = str.strip(self.fileProjectFolder.get_filename())
 		localType = self.cmbProjectType.get_active_text()
-		localLength = str.strip(self.spinProjectLength.get_text())
 	
 		# check if mode is 'New Project'
 		if (self.mode == "new"):
@@ -230,7 +223,6 @@
 		self.project.project_type = localType	# set the mlt profile
 		self.project.mlt_profile = None			# clear the cached mlt_profile object
 		self.project.folder = localFolder
-		self.project.sequences[0].length = float(localLength) * 60  # convert to seconds
 		self.project.set_project_modified(is_modified=False, refresh_xml=True)
 
 		# stop video

=== modified file 'openshot/windows/ui/NewProject.ui'
--- openshot/windows/ui/NewProject.ui	2011-01-17 18:10:03 +0000
+++ openshot/windows/ui/NewProject.ui	2012-03-20 21:42:43 +0000
@@ -22,7 +22,7 @@
         <child>
           <object class="GtkTable" id="table1">
             <property name="visible">True</property>
-            <property name="n_rows">6</property>
+            <property name="n_rows">5</property>
             <property name="n_columns">3</property>
             <property name="column_spacing">12</property>
             <property name="row_spacing">6</property>
@@ -81,37 +81,6 @@
               </packing>
             </child>
             <child>
-              <object class="GtkLabel" id="lblProjectType2">
-                <property name="visible">True</property>
-                <property name="xalign">0</property>
-                <property name="label" translatable="yes">Project Length:
-   (in minutes)</property>
-              </object>
-              <packing>
-                <property name="left_attach">1</property>
-                <property name="right_attach">2</property>
-                <property name="top_attach">2</property>
-                <property name="bottom_attach">3</property>
-                <property name="x_options">GTK_FILL</property>
-                <property name="y_options">GTK_FILL</property>
-              </packing>
-            </child>
-            <child>
-              <object class="GtkSpinButton" id="spinProjectLength">
-                <property name="visible">True</property>
-                <property name="can_focus">True</property>
-                <property name="invisible_char">&#x2022;</property>
-                <property name="adjustment">adjustment1</property>
-              </object>
-              <packing>
-                <property name="left_attach">2</property>
-                <property name="right_attach">3</property>
-                <property name="top_attach">2</property>
-                <property name="bottom_attach">3</property>
-                <property name="y_options">GTK_FILL</property>
-              </packing>
-            </child>
-            <child>
               <object class="GtkLabel" id="lblProjectType1">
                 <property name="visible">True</property>
                 <property name="xalign">0</property>
@@ -120,8 +89,8 @@
               <packing>
                 <property name="left_attach">1</property>
                 <property name="right_attach">2</property>
-                <property name="top_attach">3</property>
-                <property name="bottom_attach">4</property>
+                <property name="top_attach">2</property>
+                <property name="bottom_attach">3</property>
                 <property name="x_options">GTK_FILL</property>
                 <property name="y_options">GTK_FILL</property>
               </packing>
@@ -132,7 +101,7 @@
                 <property name="pixbuf">../../images/FadedPlayButton.png</property>
               </object>
               <packing>
-                <property name="bottom_attach">6</property>
+                <property name="bottom_attach">5</property>
                 <property name="x_options">GTK_FILL</property>
                 <property name="y_options">GTK_FILL</property>
               </packing>
@@ -152,8 +121,8 @@
               <packing>
                 <property name="left_attach">2</property>
                 <property name="right_attach">3</property>
-                <property name="top_attach">3</property>
-                <property name="bottom_attach">4</property>
+                <property name="top_attach">2</property>
+                <property name="bottom_attach">3</property>
                 <property name="y_options">GTK_FILL</property>
               </packing>
             </child>
@@ -168,8 +137,8 @@
               <packing>
                 <property name="left_attach">1</property>
                 <property name="right_attach">3</property>
-                <property name="top_attach">5</property>
-                <property name="bottom_attach">6</property>
+                <property name="top_attach">4</property>
+                <property name="bottom_attach">5</property>
                 <property name="x_options">GTK_FILL</property>
                 <property name="y_options">GTK_FILL</property>
               </packing>
@@ -340,8 +309,8 @@
               <packing>
                 <property name="left_attach">2</property>
                 <property name="right_attach">3</property>
-                <property name="top_attach">4</property>
-                <property name="bottom_attach">5</property>
+                <property name="top_attach">3</property>
+                <property name="bottom_attach">4</property>
               </packing>
             </child>
           </object>