Changeset 422

Show
Ignore:
Timestamp:
09/27/07 19:01:22 (1 year ago)
Author:
bjourne
Message:

Add binding for method PixbufDrawCache.invalidate() and add a test for
it.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • pygtkimageview/src/gtkimageview.defs

    r417 r422  
    105105  ) 
    106106 
     107(define-method invalidate 
     108  (of-object "GdkPixbufDrawCache") 
     109  (c-name "gdk_pixbuf_draw_cache_invalidate") 
     110  (return-type "none") 
     111  ) 
     112 
    107113;; Enumerations and flags ... 
    108114 
  • pygtkimageview/tests/test_module.py

    r421 r422  
    306306        except TypeError: 
    307307            assert True 
     308 
     309def test_invalidate(): 
     310    ''' 
     311    Sanity test for the PixbufDrawCache.invalidate() method. 
     312    ''' 
     313    cache = gtkimageview.PixbufDrawCache() 
     314    assert hasattr(cache, 'invalidate')