RE: [gtk-list] RE: Closing a window in GTK--
- From: "Lachac, Gerry" <G Lachac dialogic com>
- To: "'gtk-list redhat com'" <gtk-list redhat com>
- Subject: RE: [gtk-list] RE: Closing a window in GTK--
- Date: Mon, 18 May 1998 10:01:03 -0400
>
> Does automatic hide() work for you? I still have to explicitly hide()
> windows before deleting...
Since I had coded before auto-hide made its debut, I never tried it. I took
some of my explicit hide()'s out to check your theory, and sure enough,
automatic hide() is not working for me.
> It seems the problem was the way I was creating menus with
> menufactory.
> I had 2 instances (instead of pointers to instances) of
> Gtk_MenuFactory,
> as in the example from the tutorial. Changing them to pointers has
> solved the problem.
I have had a variety of *strange* problems when using instances intead of
pointers to instances. Like you, I just want to delete my window object and
have everything associated with it (buttons, labels etc.) go away without me
having to write a complicated destructor to get rid of everything.
To sum it up, if I use instances instead of pointers I get sigev. This
behaviour changes whether I compile with gcc 2.8, 2.7 or egcs. I have to
think it's a compiler issue, probably templates, but I have zero proof.
-ger
____________________________________________________________
Throw off those chains of reason, and your prison disappears...
____________________________________________________________
EMAIL: G.Lachac@dialogic.com
USMAIL: Dialogic Corp. 1515 Route 10 Parsippany,NJ
PHONE: (973)993-3000 ext 6193
WEB: http://www.dialogic.com
____________________________________________________________
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]