Re: Drawing in a Widget



> 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]