Permalink
Browse files

DialogWindow

  • Loading branch information...
1 parent 0118e67 commit 881c6f080997cbd3fcbc69d973ca2eec26dd0ea0 @NotFound committed Dec 23, 2011
Showing with 16 additions and 0 deletions.
  1. +16 −0 src/Guitor.winxed
View
@@ -1976,6 +1976,22 @@ class TopLevelWindow : ListenerWindow
}
}
+class DialogWindow : TopLevelWindow
+{
+ function DialogWindow(mainwindow, title,
+ int x, int y, int width, int height,
+ style[optional])
+ {
+ self.TopLevelWindow(mainwindow.controller, title,
+ x, y, width, height, style);
+ self.SetTransientFor(mainwindow);
+ self.display.ChangePropertyInt32(self.getDID(),
+ self.InternAtom("_NET_WM_WINDOW_TYPE"),
+ XA_ATOM, PropModeReplace,
+ self.InternAtom("_NET_WM_WINDOW_TYPE_DIALOG"));
+ }
+}
+
class ChildWindow : ListenerWindow
{
function ChildWindow(parent, int x, int y, int width, int height,

0 comments on commit 881c6f0

Please sign in to comment.