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.
This commit is contained in:
Owen Taylor 2005-05-07 19:00:36 +00:00 committed by Owen Taylor
parent 274e49f37e
commit e60f060ea8
4 changed files with 16 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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>
* gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h (gdk_pixbuf_set_as_cairo_source):

View File

@ -1,3 +1,8 @@
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>
* gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h (gdk_pixbuf_set_as_cairo_source):

View File

@ -1,3 +1,8 @@
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>
* gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h (gdk_pixbuf_set_as_cairo_source):

View File

@ -1079,7 +1079,7 @@ gc_get_foreground (GdkGC *gc,
color->pixel = priv->bg_pixel;
if (gc->colormap)
gdk_colormap_query_color (gc->colormap, priv->bg_pixel, color);
gdk_colormap_query_color (gc->colormap, priv->fg_pixel, color);
else
g_warning ("No colormap in gc_get_background");
}