Re: Avoiding multiple child-windows
- From: Guy Harris <gharris flashcom net>
- To: "Dugas, Alan" <alan dugas analog com>
- Cc: gtk-list gnome org, Ignacio Nodal <inodal teleline es>
- Subject: Re: Avoiding multiple child-windows
- Date: Thu, 22 Feb 2001 21:07:52 -0800
On Thu, Feb 22, 2001 at 11:39:31AM -0500, Dugas, Alan wrote:
> /* Return if window already exists */
> if ( window )
> {
> gdk_window_raise(GTK_WIDGET(window)->window);
You might also want to do
gdk_window_show(GTK_WIDGET(window)->window);
in case the window is minimized/iconified. (Netscape 4.x, for example,
both raises and maps the "Edit Bookmarks" window if you've already
opened it and select "Bookmarks->Edit Bookmarks...".)
There's no API to specify that the input focus should also be given to
the window, unfortunately; from an earlier discussion, part of the
problem is that the window might be on another desktop - there was some
discussion of providing some way to tell the window manager to give it
the input focus and somehow arrange that it be on the desktop you're
using, but that's not, as I remember, in the current WM spec.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]