Changeset 546

Show
Ignore:
Timestamp:
08/23/08 19:28:23 (3 months ago)
Author:
bjourne
Message:

Fix the pyg_enum_add call. Apparently, now it works to use a normal strip_prefix

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • pygtkimageview/src/gtkimageviewmodule.c

    r466 r546  
    2525    pyg_enum_add(m, "ImageTransp", "GTK_IMAGE_", GTK_TYPE_IMAGE_TRANSP); 
    2626 
    27     // Here I think we rely on buggy behaviour. pyg_enum_add() should 
    28     // turn things like GDK_PIXBUF_DRAW_METHOD_CONTAINS into 
    29     // DRAW_METHOD_CONTAINS, and only by writing a strip_prefix like 
    30     // below will it do so. 
    31     pyg_enum_add(m, "PixbufDrawMethod", "GDK_TYPE_P_", 
     27    pyg_enum_add(m, "PixbufDrawMethod", "GDK_PIXBUF_", 
    3228                 GDK_TYPE_PIXBUF_DRAW_METHOD); 
    3329