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.

_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to