openshot.code team mailing list archive
-
openshot.code team
-
Mailing list archive
-
Message #00020
[Branch ~openshot.code/openshot/main] Rev 515: Made a change to the way the transtions and effects tabs are initialised. Now it uses the page in...
------------------------------------------------------------
revno: 515
committer: Andy Finch <we.rocked.in79@xxxxxxxxx>
branch nick: openshot
timestamp: Sat 2011-08-27 20:10:43 +0100
message:
Made a change to the way the transtions and effects tabs are initialised. Now it uses the page index rather than the label string. This should avaoid any more translation issues.
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-24 18:03:20 +0000
+++ openshot/windows/MainGTK.py 2011-08-27 19:10:43 +0000
@@ -491,10 +491,10 @@
# get main widget in tab
tabChild = widget.get_nth_page(new_page_pos)
tabLabel = widget.get_tab_label(tabChild)
- tabLabelText = widget.get_tab_label_text(tabChild)
# init transitions & effects (if needed)
- if tabLabelText == _("Transitions"):
+ if new_page_pos == 1:
+ # initialise transitions tab
if not self.OSIcvTransitions:
# change cursor to "please wait"
tabLabel.window.set_cursor(gtk.gdk.Cursor(150))
@@ -507,7 +507,8 @@
# set cursor to normal
tabLabel.window.set_cursor(None)
- elif tabLabelText == _("Effects"):
+ elif new_page_pos == 2:
+ # initialise effects tab
if not self.OSTreeEffects:
# change cursor to "please wait"
tabLabel.window.set_cursor(gtk.gdk.Cursor(150))