Re: keeping modal dialogs visible (on top)



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]