Mercurial > MadButterfly
comparison pyink/comp_dock.py @ 1417:7c89a4f648bd
Fix issue of removing components.
Ref: ticket #35 on Assembla
- It caused by misunderstanding (pygtk change it?) of APIs of PyGTK.
- Fix it by calling iter_next() of data model.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Thu, 07 Apr 2011 11:44:49 +0800 |
parents | d0e6f350b3fd |
children | 894a4bf35fe6 |
comparison
equal
deleted
inserted
replaced
1416:c60a978f98b1 | 1417:7c89a4f648bd |
---|---|
118 itr_name = model.get_value(itr, 0) | 118 itr_name = model.get_value(itr, 0) |
119 if itr_name == name: | 119 if itr_name == name: |
120 model.remove(itr) | 120 model.remove(itr) |
121 return | 121 return |
122 | 122 |
123 itr = itr.iter_next() | 123 itr = model.iter_next(itr) |
124 pass | 124 pass |
125 | 125 |
126 raise ValueError, 'unknown component name - %s' % (name) | 126 raise ValueError, 'unknown component name - %s' % (name) |
127 | 127 |
128 def dom_add_timeline(self, name): | 128 def dom_add_timeline(self, name): |