"Kohli, Ranjan" wrote:
> Is there anyway I can set up a GtkWindow so that I can prevent the user
> from hitting the dismiss window icon [X] in the window title bar ?
What do you mean by `prevent'.  If you do not want your GtkWindow to
close when the user clicks on `dismiss window' then you don't connect
the window to the "destroy" signal.  If you want a window border, then
try the following to create a window without *any* window management.
(Note: this is usually a Bad Thing as the user now cannot move,
destroy, or resize the window.)
    w = GtkWindow(WINDOW_POPUP) 

If you just want a window frame without the close option then you are
out of luck, I'm afraid.  One of the founding tenants of X is the
separation of Widget set and Window Manager; as a consequence the
programs have little control over their own frames.

I suppose you could write some Lisp code in Sawfish to move the window
away from the mouse whenever it approached the close button :)

--
Michael JasonSmith        http://www.cosc.canterbury.ac.nz/~mpj17/

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to