Hello,

I am currently trying to design a customized VBox widget that will have a 
gradient background. So I created a custom widget over the GtkVBox widget, and 
replaced the 'expose' function of the GtkWidgetClass to draw the gradient. 
Everything works well, except when I want to include this VBox inside a 
scrolled window.

If I use the gtk_scrolled_window_add_with_viewport() function, the widget is 
displayed correctly. But when a size allocation occurs (simply resize the 
window containing the box with the mouse) the background gets scrambled (I 
attached a screenshot. The blue line should be at the bottom of the window), as 
if not all the widget was redrawn. If I drag another window of the box, the 
widget is once again redrawn correctly.

What am I doing wrong ?
Thanks in advance!

Mathieu

<<attachment: scrambled.png>>

_______________________________________________
gtk-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to