Re: [gtk-list] Closing a window in GTK--



On Fri, 15 May 1998, Angel Jimenez Jimenez wrote:

>  I'm trying to close a window from a menu option. So, in this menu
> option callback, I do "delete window". The first time I do it, it does
> nothing. If I try again, I get sigsegv. Do I need to do something else
> to close this window (I've tried hiding it before, but it doesn't help,
> and anyway it's supposed to be done automatically). 
> 
>  I'm using GTK+ 1.0.1 and GTK-- 0.9.3.

Unless I am mistaken, Gtk_Whatever::hide () is the function you want to
use to close a window.

Speaking of "delete"ing Gtk-- windows, would a delete after a hide ()
cause any problems for GTK (disposible windows)?

                                      - Dave

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  Name:  David Finton                  | "All free software is in Beta.  If
 Email:  dfinton@d.umn.edu             |  there is a free software package
   Web:  http://www.d.umn.edu/~dfinton |  bearing the version number 1.0 or
                                       |  greater, it is obsolete and must
                                       |  be replaced immediately by a
                                       |  newer, better Beta version."
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-




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