editing the GdkBitmap transparency mask for a GtkImage



ive been working with GtkImages with GdkPixmaps for a while and am quite
privy to their use and altering them.  right now i have a GtkImage with
another GtkImage on top (by using a fixed to place them properly).
additionally, i can specify what parts are to be transparent and what
opaque and draw on the opaque part of the GtkImage on top of the other
and it shows up fine.  so... the one problem im left with is figuring
out how to update the GdkBitmap transparency mask.  alterations before
making the GtkImage work great but afterward, no part of the mask can be
altered.  my failed attempt have been to alter the unsigned gchar array
that is used to create the mask but ive found that ineffective... to the
point where i free the memory for the array and it makes no impact on
the program.

so... how do i alter the transparency mask in a GtkImage AFTER it has
been displayed?

here's my widget structure:

+window
|-+event
  |-+fixed
    |-GtkImage (no mask)
    |-GtkImage (has GdkBitmap mask) <-- cant update transparency mask

does anyone have experience with this?  are there any examples anywhere?

Thanks,
Gravis




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]