Re: Multiple Windows
- From: Havoc Pennington <hp redhat com>
- To: "E K" <butt_mudd hotmail com>
- Cc: gtk-list gnome org
- Subject: Re: Multiple Windows
- Date: 22 Mar 2001 22:28:15 -0500
"E K" <butt_mudd hotmail com> 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]