Re: [gtk-list] [gtk-perl] $form->{'form'}->hide;



Olivier Demah wrote:
> 
> Hi all,
> Do you know if it is enough, to close my "form of connection of 
> application" (with ->hide() function)
> and the next, to launch my main menu (which is in my Foot.pm package)
> Is this hide function freeing memory space ?
> If not what function to use to close my form and freeing space memory ?
Hi, I guess that you mean a splash screen while the program loads and 
before Gtk->main is called by 'foot->run;'.

My understanding is that hide makes the widget (form) invisible and unmaps
it but (from Havoc's book) "...destroying a widget frees any associated
memory and other resources..."

My understanding is that if you are going to show the splash screen again 
you can save the overhead of (re)constructing it by hide() and then show() 
but if you are never going to show() it again you should destroy() it and
free any memory and resources it has acquired.

Regards, Dermot



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