← Back to team overview

openshot.code team mailing list archive

[Branch ~openshot.code/openshot/main] Rev 512: Added a patch from clockworkpc to fix bug #831762, No keyboard shortcut for adding a marker. Also...

 

------------------------------------------------------------
revno: 512
committer: Andy Finch <we.rocked.in79@xxxxxxxxx>
branch nick: openshot
timestamp: Wed 2011-08-24 19:03:20 +0100
message:
  Added a patch from clockworkpc to fix bug #831762, No keyboard shortcut for adding a marker. Also made the Remove Marker function undoable.
modified:
  openshot/windows/MainGTK.py


--
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/MainGTK.py'
--- openshot/windows/MainGTK.py	2011-08-23 21:22:41 +0000
+++ openshot/windows/MainGTK.py	2011-08-24 18:03:20 +0000
@@ -2185,6 +2185,11 @@
 					#snapshot
 					self.get_frame_snapshot()
 					return True
+				
+			elif keyname == "m":
+					#add a marker when the key is pressed
+					self.on_tlbAddMarker_clicked(widget)
+					return True
 		
 					
 	def toggle_mode(self):
@@ -2837,8 +2842,8 @@
 		self.selected_marker.parent.markers.remove(self.selected_marker)
 		
 		# mark project as modified
-		self.project.set_project_modified(is_modified=True, refresh_xml=True)
-		
+		self.project.set_project_modified(is_modified=True, refresh_xml=True, type = _("Removed marker"))
+				
 		# refresh timeline
 		self.form.refresh()