Re: Drawing in a Widget
- From: Wolfgang Sourdeau <wolfgang iNsu com>
- To: ffv conectiva com br
- Cc: gtk-list gnome org
- Subject: Re: Drawing in a Widget
- Date: Mon, 24 Jul 2000 13:50:56 -0400 (EDT)
> i like to known why doesn`t appear a rectangle inside
> the widget window in the follow small code .
> gdk_draw_rectangle(window->window, window->style->fg_gc[GTK_WIDGET_STATE(window)], 1, 1, 1, 20, 20);
Probably because you are painting your rectangle with the same
background colour as the window itself. You should use another gc than
fg_gc[GTK_WIDGET_ST\ATE(window)] to have another colour. For example,
you could try gdk_draw_rectangle(window->window,
window->style->white_gc, 1, 1, 1, 20, 20);
W
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]