aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/Interface.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-11-30 21:47:39 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-11-30 21:47:39 +0100
commita64627699d4919d389522d92032ce4f05704d313 (patch)
treefbcd945cfebc6d802f3bed004cb06eb641f6fb46 /src/Interface.cs
parent1e6d9bbb33f98f85e89cd3321ff9c29ffa4fccb0 (diff)
various fixes
Diffstat (limited to 'src/Interface.cs')
-rw-r--r--src/Interface.cs16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/Interface.cs b/src/Interface.cs
index 743bbb0f..77137761 100644
--- a/src/Interface.cs
+++ b/src/Interface.cs
@@ -128,6 +128,9 @@ namespace Crow
Keyboard.KeyUp += Keyboard_KeyUp;
Keyboard.KeyPress += Keyboard_KeyPress;
+ initTooltip ();
+ initContextMenus ();
+
Thread t = new Thread (interfaceThread);
t.IsBackground = true;
t.Start ();
@@ -161,7 +164,7 @@ namespace Crow
// keyboardRepeatThread = new Thread (keyboardRepeatThreadFunc);
// keyboardRepeatThread.IsBackground = true;
// keyboardRepeatThread.Start ();
- }
+ }
void interfaceThread()
{
@@ -212,8 +215,6 @@ namespace Crow
//loadCursors ();
loadStyling ();
findAvailableTemplates ();
- //initTooltip ();
- //initContextMenus ();
#if MEASURE_TIME
PerfMeasures.Add (updateMeasure);
@@ -500,9 +501,9 @@ namespace Crow
}
}
/// <summary>
- /// Add the content of the IML fragment to the graphic tree of this interface
+ /// Create an instantiator bound to this interface from the IML fragment
/// </summary>
- /// <returns>return the new instance for convenience, may be ignored</returns>
+ /// <returns>return the new instantiator</returns>
/// <param name="imlFragment">a valid IML string</param>
public Instantiator CreateITorFromIMLFragment (string imlFragment) {
return Instantiator.CreateFromImlFragment (this, imlFragment);
@@ -816,7 +817,7 @@ namespace Crow
clipping = new Region ();
//}
//surf.WriteToPng (@"/mnt/data/test.png");
- surf.Flush();
+
backend?.Flush ();
}
}
@@ -1125,6 +1126,9 @@ namespace Crow
if (FocusedWidget == null)
return true;
+
+ ActiveWidget = FocusedWidget;
+
if (!FocusedWidget.MouseRepeat)
return true;
mouseRepeatThread = new Thread (mouseRepeatThreadFunc);