[maemo-developers] [maemo-developers] Bug in Maemo's version of GTK-2.6 (Please nokia-devs look into this)

From: Tapani Pälli tapani.palli at nokia.com
Date: Tue Nov 8 10:40:51 EET 2005
ext Tapani Pälli wrote:

>ext Clemens Eisserer wrote:
>
>  
>
>>This is the code I used for testing:
>>printf("\nDepth: %d", gdk_rgb_get_visual()->depth);
>>GdkPixmap* pix = gdk_pixmap_new (NULL, 10, 10, 16);
>>void* cm = gdk_drawable_get_colormap ((GdkDrawable *)pix);
>>printf("\nIt returned with 16-bit depth: %d", cm);
>>fflush(stdout);
>>
>>GdkPixmap* pix2 = gdk_pixmap_new (NULL, 10, 10, gdk_rgb_get_visual()->depth);
>>void* cm2 = gdk_drawable_get_colormap ((GdkDrawable *)pix2);
>>printf("\nIt returned with gdk_rgb_get_visual()->depth: %d\n", cm2);
>>fflush(stdout);
>> 
>>
>>    
>>
>Is it the gdk_rgb_get_visual()->depth which is returning wrong value for
>you?
>  
>

Yeah, now that I checked it returns 24 which is false.

>I noticed that in your code you are printing pointer to colormap
>structure (returned from gdk_drawable_get_colormap) as integer assuming
>that this would be the depth (?), this is uncorrect.
>
>  
>
Sorry, did not read carefully enough :-)

// Tapani


More information about the maemo-developers mailing list