On Tue, 4 May 1999, Andreas Vox wrote:
> No, all I get is black and some reddish colors. I send a screenshot so you
> get
> the picture. I created two images, changed the background selection to green
> and created a box and a note (only the edge markers are visible).

I think the problem is the many visuals your x-server can use. I'm not
terribly good at X visual and color handling (almost nobody is, it's
incredibly complex...). 
The problem is basically this: (from lib/color.c)
void 
color_init(void)
{
  GdkVisual *visual = gtk_widget_get_default_visual(); 
  GdkColormap *colormap = gtk_widget_get_default_colormap(); 
  color_context = gdk_color_context_new(visual, colormap);

  color_convert(&color_black, &color_gdk_black);
  color_convert(&color_white, &color_gdk_white);
}
 This probably selects the wrong visual and/or colormap for you.

This (in lib/dia_image.c) could also be what leads to this problem: 
void
dia_image_init(void)
{
  gdk_imlib_init();
  /* FIXME:  Is this a good idea? */
  gtk_widget_push_visual(gdk_imlib_get_visual());
  gtk_widget_push_colormap(gdk_imlib_get_colormap());
}

Could you try commenting out the two lines:
  gtk_widget_push_visual(gdk_imlib_get_visual());
  gtk_widget_push_colormap(gdk_imlib_get_colormap());
in lib/dia_image.c in dia_image_init.

The report to me what happens.

It's rather hard to debug this stuff for me since i don't have access to
such strange X-displays.

/ Alex

Reply via email to