← Back to team overview

openshot.code team mailing list archive

[Branch ~openshot.code/openshot/main] Rev 528: Fixed 1 small regression with the icon size change and the clip properties effects tab.

 

------------------------------------------------------------
revno: 528
committer: Jonathan Thomas <Jonathan.Oomph@xxxxxxxxx>
branch nick: openshot
timestamp: Wed 2011-08-31 00:27:51 -0500
message:
  Fixed 1 small regression with the icon size change and the clip properties effects tab.
modified:
  openshot/windows/TreeEffects.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/TreeEffects.py'
--- openshot/windows/TreeEffects.py	2011-08-31 05:24:34 +0000
+++ openshot/windows/TreeEffects.py	2011-08-31 05:27:51 +0000
@@ -102,10 +102,12 @@
 		
 		# Get icon size from settings
 		icon_size = self.project.form.settings.general["icon_size"]
-		if icon_size == "small":
-			self.treeview.set_item_width(90)
-		else:
-			self.treeview.set_item_width(130)
+		if type(self.treeview) == gtk.IconView:
+			# only resize IconView
+			if icon_size == "small":
+				self.treeview.set_item_width(90)
+			else:
+				self.treeview.set_item_width(130)
 			
 		
 		# Add effects to dropdown