]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/mainframe.cpp
ported bobtoolz
[xonotic/netradiant.git] / radiant / mainframe.cpp
index ee4f8cbbafce75af07fe9a8fb2ec0ee81dfcca8f..e49d7fd92eba67746410c7762e06f6d32fdcd11f 100644 (file)
@@ -2631,6 +2631,16 @@ public:
 
 MainWindowActive g_MainWindowActive;
 
+SignalHandlerId XYWindowDestroyed_connect(const SignalHandler& handler)
+{
+  return g_pParentWnd->GetXYWnd()->onDestroyed.connectFirst(handler);
+}
+
+void XYWindowDestroyed_disconnect(SignalHandlerId id)
+{
+  g_pParentWnd->GetXYWnd()->onDestroyed.disconnect(id);
+}
+
 MouseEventHandlerId XYWindowMouseDown_connect(const MouseEventHandler& handler)
 {
   return g_pParentWnd->GetXYWnd()->onMouseDown.connectFirst(handler);