Re: keeping modal dialogs visible (on top)
- From: Vlad Harchev <hvv hippo ru>
- To: "Sharp, Peggy" <Peggy Sharp wang com>
- Cc: "'gtk-list gnome org'" <gtk-list gnome org>
- Subject: Re: keeping modal dialogs visible (on top)
- Date: Fri, 14 Jul 2000 22:55:31 +0500 (SAMST)
On Fri, 14 Jul 2000, Sharp, Peggy wrote:
> i've not been able to find a way to keep modal dialogs on top of any others
> that are visible.  it this possible, and if so, please send instructions.
> thanks!
 There is a function in libgnomeui (i.e. the part of gnome):
gnome_win_hints_set_layer(GtkWidget* w,GnomeWinLayer layer);
Where 
typedef enum
{
  WIN_LAYER_DESKTOP     = 0,
  WIN_LAYER_BELOW       = 2,
  WIN_LAYER_NORMAL      = 4,
  WIN_LAYER_ONTOP       = 6,
  WIN_LAYER_DOCK        = 8,
  WIN_LAYER_ABOVE_DOCK  = 10
} GnomeWinLayer;
 So you should use:
gnome_win_hints_set_layer(GtkWidget* w, WIN_LAYER_ONTOP);
 If you don't want to depend on Gnome, just reimplement
gnome-libs-1.0.5/libgnomeui/gnome-winhints.c:gnome_win_hints_set_layer
and you are done.
 Note: this will work only with GNOME-compatible window managers ( E, WM and
Sawfish included, and probably KWM).
 
> _______________________________________________
> gtk-list mailing list
> gtk-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-list
> 
 Best regards,
  -Vlad
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]