Re: Less flashin for in-process plug/socket



On Sun, 21 Apr 2002, Owen Taylor wrote:

> >    plug->socket_window = GTK_WIDGET (socket)->window;
> >  
> > -  if (GTK_WIDGET_REALIZED (widget))
> > -    gdk_window_reparent (widget->window, plug->socket_window, 0, 0);
> > +  if (GTK_WIDGET_REALIZED (widget)) {
> > +    gdk_drawable_get_size (GDK_DRAWABLE (widget->window), &w, &h);
> > +    gdk_window_reparent (widget->window, plug->socket_window, -w, -h);
> > +  }
> 
> Looks fine except for the { placement issue.

To much nautilus hacking I fear. :)

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a superhumanly strong zombie househusband who must take medication to 
keep him sane. She's a wealthy foul-mouthed nun from the wrong side of the 
tracks. They fight crime! 




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