After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 562958 - gdk_image_new() doen't allow creation of GDK_IMAGE_SHARED image with depth 1
gdk_image_new() doen't allow creation of GDK_IMAGE_SHARED image with depth 1
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Backend: X11
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on: 441853
Blocks:
 
 
Reported: 2008-12-02 10:47 UTC by Yann Droneaud
Modified: 2010-08-11 04:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Yann Droneaud 2008-12-02 10:47:04 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.
Comment 1 Yann Droneaud 2008-12-02 10:49:16 UTC
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().

Comment 2 Matthias Clasen 2010-08-11 04:01:36 UTC
GdkImage is gone in gtk3