Re: [gtk-vnc-devel] [PATCH] Gtk-VNC not packed



On Tue, Jan 15, 2008 at 03:27:52PM +0000, Richard W.M. Jones wrote:
> Anthony Liguori wrote:
> >Richard W.M. Jones wrote:
> >>I don't know if you necessarily want to classify this as a bug, but 
> >>currently if you create a Gtk-VNC widget but don't pack it, then it 
> >>will segfault when it tries to draw anything.
> >
> >I'm not sure what "packed" is.  Do we need to wait for realize or 
> >something?  My concern with this patch is that the buffer disappears 
> >until the next resize so when things to get "packed" we don't start 
> >displaying like we should.
> 
> Sorry, I wasn't clear.  This is when you create a Gtk-VNC widget but 
> don't add it to any container, but then you do make it connect to a VNC 
> server.  The widget segfaults, because the return value from

Ah I see. Do you think it is a valid use case to create a widget, not add
it to any container and still want to connect ? Or should we consider that
an application bug and try to catch & reject it at the initial call to 
'vnc_display_open_host' ?

Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 




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