"E K" <[EMAIL PROTECTED]> writes:
> Was wondering how I can stop my program from allowing the same window
> to pop up infinitely? Where as I call a function, it displays the
> window, and I can do it over and over again and have the same window
> displayed a gazillion times. I want it to only allow that one window
> to be displayed once. How do I do that?
>
Keep a pointer to the window, when the window is destroyed set the
pointer to NULL, when the user pops up the window you do nothing if
the pointer is non-NULL. Or for an extra-snazzy touch, if the pointer
is non-NULL you can gdk_window_raise (widget->window) to bring the
window to the top.
Havoc
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list