RE: Pixmaps/Bitmaps & CTrees



Thanks for responding.

On Wed, 21 Feb 2001, Esquibel, Rick wrote:

>   GdkPixmap *close = NULL;
>   GdkPixmap *open = NULL;
>   GdkBitmap *transparent;


You must have meant to type GdkColor *transparent; right?


>   close = gdk_pixmap_colormap_create_from_xpm(NULL,
>                      gdk_colormap_get_system(), 
>                      &transparent, NULL, "../pixmaps/dir.xpm");
> 
>   open = gdk_pixmap_colormap_create_from_xpm(NULL,
>                       gdk_colormap_get_system(), 
>                       &transparent, NULL, "../pixmaps/info.xpm");


This does work. However, the little directory pixmap in my CTree doesn't
have a transparent background. It's nasty looking when you select that
row.

Another thing that's making me quite frustrated is the fact that I
*cannot* associate any text with any of my CTree nodes. If I put anything
other than NULL in the gchar *text parameter of insert_node, I get a
segmentation fault.






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