← Back to team overview

openshot.code team mailing list archive

[Branch ~openshot.code/openshot/main] Rev 582: Removed focus effect from track item. There was no reason to toggle the tracks on and off, as it...

 

------------------------------------------------------------
revno: 582
committer: Jonathan Thomas <Jonathan.Oomph@xxxxxxxxx>
branch nick: openshot
timestamp: Thu 2011-09-22 13:23:37 -0500
message:
  Removed focus effect from track item.  There was no reason to toggle the tracks on and off, as it was a visual effect that has no purpose.
modified:
  openshot/classes/track.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/classes/track.py'
--- openshot/classes/track.py	2011-08-10 20:50:17 +0000
+++ openshot/classes/track.py	2011-09-22 18:23:37 +0000
@@ -314,25 +314,11 @@
 
 		
 	def on_focus_in (self, item, target, event):
-		isinstance(item, goocanvas.Image)		
-		id = item.get_data ("id")
-		
+
 		if event.button == 3:
 			# show the track popup menu
 			self.parent.project.form.mnuTrack1.showmnu(event, self)
 
-		if id == "normal":
-			# Load Hover Over
-			imgTrack_Left_Hover = gtk.image_new_from_file("%s/openshot/themes/%s/Track_Left_Hover.png" % (self.parent.project.form.openshot_path, self.parent.project.theme))
-			item.set_properties(pixbuf = imgTrack_Left_Hover.get_pixbuf())
-			item.set_data("id", "hover")
-		else: 
-			# Load normal image
-			imgTrack_Left_Hover = gtk.image_new_from_file("%s/openshot/themes/%s/Track_Left.png" % (self.parent.project.form.openshot_path, self.parent.project.theme))
-			item.set_properties(pixbuf = imgTrack_Left_Hover.get_pixbuf())
-			item.set_data("id", "normal")
-
-
 		return False