force redraw on another redraw (was: pixmaps and xpm-transparency)



On Sun, Apr 22, 2001 at 02:35:19AM +0200, Tobias Hintze wrote:
> On Wed, Apr 18, 2001 at 03:02:37PM +0100, John Cupitt wrote:
> > 
> > 
> >         fixed = gtk_fixed_new();
> >         gtk_box_pack_start( GTK_BOX( hb ), fixed, FALSE, FALSE, 2 );
> >         gtk_widget_show( fixed );
> > 
> >         px = gtk_pixmap_new( image, mask );
> >         gtk_fixed_put( GTK_FIXED( fixed ), px, 10, 10 );
> >         gtk_widget_show( px );
> > 
> >         px = gtk_pixmap_new( image, mask );
> >         gtk_fixed_put( GTK_FIXED( fixed ), px, 20, 20 );
> >         gtk_widget_show( px );
> 
> thanks. this one just works.

but as i just noticed - it brings a new problem:
whenever the underlying "px" needs a repaint. it will be
repainted AND it will draw OVER the overlying "px".

so i think i need some technique to force the overlying "px"
to redraw every time the underlying one is being redrawn.

any hints?

thanks in advance,
th
-- 
 323C 2218 6E86 F116 6ABD  C7F5 276D 6F68 C67B D192
          (pub  1024D/C67BD192 2001-01-11)
           Tobias Hintze <hintze olsn org>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]