[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] pnetlib/System.Drawing.Xsharp DrawingTopLevelWindo
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] pnetlib/System.Drawing.Xsharp DrawingTopLevelWindow.cs, 1.17, 1.18 |
Date: |
Tue, 02 Dec 2003 11:04:20 +0000 |
Update of /cvsroot/dotgnu-pnet/pnetlib/System.Drawing.Xsharp
In directory subversions:/tmp/cvs-serv30896/System.Drawing.Xsharp
Modified Files:
DrawingTopLevelWindow.cs
Log Message:
Add some more window hints from the standards at "freedesktop.org".
Index: DrawingTopLevelWindow.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/System.Drawing.Xsharp/DrawingTopLevelWindow.cs,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** DrawingTopLevelWindow.cs 2 Dec 2003 07:28:06 -0000 1.17
--- DrawingTopLevelWindow.cs 2 Dec 2003 11:04:17 -0000 1.18
***************
*** 271,278 ****
void IToolkitTopLevelWindow.SetWindowFlags(ToolkitWindowFlags flags)
{
! // Set the default Motif decoration flags.
MotifDecorations decorations =
MotifDecorations.All;
MotifFunctions functions = MotifFunctions.All;
MotifInputType inputType =
MotifInputType.Normal;
// Alter decorations according to the window
flags.
--- 271,279 ----
void IToolkitTopLevelWindow.SetWindowFlags(ToolkitWindowFlags flags)
{
! // Set the default hint flags.
MotifDecorations decorations =
MotifDecorations.All;
MotifFunctions functions = MotifFunctions.All;
MotifInputType inputType =
MotifInputType.Normal;
+ OtherHints otherHints = OtherHints.None;
// Alter decorations according to the window
flags.
***************
*** 317,320 ****
--- 318,341 ----
inputType =
MotifInputType.ApplicationModal;
}
+ if((flags & ToolkitWindowFlags.ToolWindow) != 0)
+ {
+ otherHints |= OtherHints.ToolWindow;
+ }
+ else if((flags & ToolkitWindowFlags.Dialog) !=
0)
+ {
+ otherHints |= OtherHints.Dialog;
+ }
+ if((flags & ToolkitWindowFlags.ShowInTaskbar)
== 0)
+ {
+ otherHints |=
OtherHints.HideFromTaskBar;
+ }
+ if((flags & ToolkitWindowFlags.Help) != 0)
+ {
+ otherHints |= OtherHints.HelpButton;
+ }
+ if((flags & ToolkitWindowFlags.TopMost) != 0)
+ {
+ otherHints |= OtherHints.TopMost;
+ }
// Remove the "transient for" hint if we are
changing a
***************
*** 330,334 ****
Functions = functions;
InputType = inputType;
! HasHelpButton = ((flags &
ToolkitWindowFlags.Help) != 0);
}
--- 351,355 ----
Functions = functions;
InputType = inputType;
! OtherHints = otherHints;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] pnetlib/System.Drawing.Xsharp DrawingTopLevelWindow.cs, 1.17, 1.18,
Rhys Weatherley <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] pnetlib/Xsharp OtherHints.cs, NONE, 1.1 MotifDecorations.cs, 1.1, 1.2 MotifFunctions.cs, 1.1, 1.2 TopLevelWindow.cs, 1.15, 1.16
- Next by Date:
[Dotgnu-pnet-commits] pnetlib/samples FormsTest.cs,1.23,1.24
- Previous by thread:
[Dotgnu-pnet-commits] pnetlib/Xsharp OtherHints.cs, NONE, 1.1 MotifDecorations.cs, 1.1, 1.2 MotifFunctions.cs, 1.1, 1.2 TopLevelWindow.cs, 1.15, 1.16
- Next by thread:
[Dotgnu-pnet-commits] pnetlib/samples FormsTest.cs,1.23,1.24
- Index(es):