Changeset 366
- Timestamp:
- 09/10/07 16:15:30 (1 year ago)
- Files:
-
- pygtkimageview/src/gtkimageview.defs (modified) (1 diff)
- pygtkimageview/tests/test_module.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
pygtkimageview/src/gtkimageview.defs
r365 r366 353 353 (parameters 354 354 '("GtkImageTransp" "transp") 355 '("int" "transp_color" )355 '("int" "transp_color" (default 0x00000000)) 356 356 ) 357 357 ) pygtkimageview/tests/test_module.py
r365 r366 194 194 assert rect.x == 100 and rect.y == 100 195 195 196 def test_set_transp(): 197 ''' 198 Ensure that setting the views transparency settings works as 199 expected. 200 ''' 201 view = gtkimageview.ImageView() 202 view.set_transp(gtkimageview.TRANSP_COLOR, transp_color = 0xff0000) 203 col1, col2 = view.get_check_colors() 204 assert col1 == col2 == 0xff0000 205 206 view.set_transp(gtkimageview.TRANSP_GRID) 207 208
