Re: How do I make a dialog stay on top of the main window?
- From: gstrauss <george s3i com>
- To: Nils Rennebarth <nils ipe uni-stuttgart de>
- Cc: GTK Liste <gtk-app-devel-list gnome org>
- Subject: Re: How do I make a dialog stay on top of the main window?
- Date: Thu, 16 Nov 2000 14:24:31 -0500 (EST)
Here is how I have done it.
gtk_window_set_modal(GTK_WIDGET(widget), TRUE);
gtk_grab_add(GTK_WIDGET(widget));
gtk_window_set_transient_for(GTK_WINDOW(widget),GTK_WINDOW(mainwindow));
George
On Thu, 16 Nov 2000, Nils Rennebarth wrote:
I want to prevent a modal dialog (showing an error message) to be
covered by
the application window which could easily happen if the window manager's
policy is "focus follows pointer" and "focus auto raise".
How do I hint the wm (assuming it is a rather modern one, say fvwm2,
sawmill or the like) to make the window stay on top of the main
application
window?
Nils
--
*New* *New* *New* - on shellac records
Windows HE - see top 10 reasons to downgrade on
Historical Edition http://www.microsoft.com/windowshe
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]