GNOME Bugzilla – Bug 562958
gdk_image_new() doen't allow creation of GDK_IMAGE_SHARED image with depth 1
Last modified: 2010-08-11 04:01:36 UTC
In order to update a shape mask, I'm currently creating a GdkBitmap with gdk_bitmap_create_from_data() each time before calling gdk_window_input_shape_combine_mask(). The bitmap is then unref'ed. The same process is done multiple time per second. To fasten this process, I'd like to use MIT-SHM extension, with a Shm Pixmap created only once and updated through the shared memory region. (The call to gdk_window_input_shape_combine_mask() still have to done each time). I'd like to create a GdkImage for a GDK_IMAGE_SHARED image with depth 1. But gdk_image_new() don't have a depth argument.
To be useful, bug #441853 have to be fixed and a function like gdk_image_get_shared_pixmap() have to be added. The GdkDrawable returned by gdk_image_get_shared_pixmap() will be used in call to gdk_window_input_shape_combine_mask().
GdkImage is gone in gtk3