Commit e60f060e authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor

Get the foreground color, not the background color.

2005-05-07  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdkgc.c (gc_get_foreground): Get the foreground color, not
        the background color.
parent 274e49f3
2005-05-07 Owen Taylor <otaylor@redhat.com>
* gdk/gdkgc.c (gc_get_foreground): Get the foreground color, not
the background color.
2005-05-07 Owen Taylor <otaylor@redhat.com> 2005-05-07 Owen Taylor <otaylor@redhat.com>
* gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h (gdk_pixbuf_set_as_cairo_source): * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h (gdk_pixbuf_set_as_cairo_source):
......
2005-05-07 Owen Taylor <otaylor@redhat.com>
* gdk/gdkgc.c (gc_get_foreground): Get the foreground color, not
the background color.
2005-05-07 Owen Taylor <otaylor@redhat.com> 2005-05-07 Owen Taylor <otaylor@redhat.com>
* gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h (gdk_pixbuf_set_as_cairo_source): * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h (gdk_pixbuf_set_as_cairo_source):
......
2005-05-07 Owen Taylor <otaylor@redhat.com>
* gdk/gdkgc.c (gc_get_foreground): Get the foreground color, not
the background color.
2005-05-07 Owen Taylor <otaylor@redhat.com> 2005-05-07 Owen Taylor <otaylor@redhat.com>
* gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h (gdk_pixbuf_set_as_cairo_source): * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h (gdk_pixbuf_set_as_cairo_source):
......
...@@ -1079,7 +1079,7 @@ gc_get_foreground (GdkGC *gc, ...@@ -1079,7 +1079,7 @@ gc_get_foreground (GdkGC *gc,
color->pixel = priv->bg_pixel; color->pixel = priv->bg_pixel;
if (gc->colormap) if (gc->colormap)
gdk_colormap_query_color (gc->colormap, priv->bg_pixel, color); gdk_colormap_query_color (gc->colormap, priv->fg_pixel, color);
else else
g_warning ("No colormap in gc_get_background"); g_warning ("No colormap in gc_get_background");
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment