Re: [gtk-list] Re: Menus in GTK--



Angel Jimenez Jimenez <ajimenez@vnet.es> writes:
>  But now I'm having troubles again. I have several file selection
> dialogs. Each one with its own callbacks. Every example I've seen just
> creates this dialogs, and then just show/hide them in the right places.
> Is this the way it is supossed to work? Doesn't it waste resources?

Creating widgets used to took quite long time. Fileselection and other
large dialogs have pretty many widgets => took long enough time for
people to notice...

=> most applications create it once and then hide()/show() it...

>  Anyway, even if dialogs are done this way, I have to dynamically
> create/destroy  several windows. How can I destroy some window to
> release its resources? I've tried delete, but I get sissegv. The same
> happens with destroy method.

If you create it with new, you should be able to destroy it with delete too.
But note that you should first hide() it...

>  One final question. Do you have a list of applications being done using
> GTK--? If I had more example code to read, I wouldn't have to ask you
> every time I'm going to try a new thing :) (I have linuxmp3 source, and
> the couple of opengl examples you have in your page).

I dont have list of them. Many people dont tell me about what they're doing
and might not yet have their apps good enough for first public release...

the linuxmp3 is the only one that I've seen in freshmeat :)

> PS. There is a bug in your 'testme' example. If you close the file
> selection, and open it again, you get an empty dialog.

hmm, I'll have to check this out and fix it.

-- 
-- Tero Pulkkinen -- terop@modeemi.cs.tut.fi --



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