diff options
author | Michael Hutchinson <mhutchinson@novell.com> | 2010-01-22 10:19:11 +0300 |
---|---|---|
committer | Michael Hutchinson <mhutchinson@novell.com> | 2010-01-22 10:19:11 +0300 |
commit | f4267d1e9fb2ef687c934485b9ed5459257f00a9 (patch) | |
tree | 9a5a0bf52366638149d4f530f54d52452ec30bc4 /docbrowser | |
parent | 693805a07422e0207f9e0338638b637b25b3eb7b (diff) |
Add bindings for a couple of things that seem to be missing from the IGE wrapper
svn path=/trunk/mono-tools/; revision=150044
Diffstat (limited to 'docbrowser')
-rw-r--r-- | docbrowser/macbuild/IgeMacMenuGlobal.cs | 25 | ||||
-rw-r--r-- | docbrowser/macbuild/Makefile | 1 |
2 files changed, 26 insertions, 0 deletions
diff --git a/docbrowser/macbuild/IgeMacMenuGlobal.cs b/docbrowser/macbuild/IgeMacMenuGlobal.cs new file mode 100644 index 00000000..20d9dad6 --- /dev/null +++ b/docbrowser/macbuild/IgeMacMenuGlobal.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections; +using System.Runtime.InteropServices; + +namespace IgeMacIntegration { + + public class IgeMacMenuGlobal { + + [DllImport("libigemacintegration.dylib")] + static extern void ige_mac_menu_connect_window_key_handler (IntPtr window); + + public static void ConnectWindowKeyHandler (Gtk.Window window) + { + ige_mac_menu_connect_window_key_handler (window.Handle); + } + + [DllImport("libigemacintegration.dylib")] + static extern void ige_mac_menu_set_global_key_handler_enabled (bool enabled); + + public static void SetGlobalKeyHandlerEnabled (bool enabled) + { + ige_mac_menu_set_global_key_handler_enabled (enabled); + } + } +} diff --git a/docbrowser/macbuild/Makefile b/docbrowser/macbuild/Makefile index 22b33adc..d6c62397 100644 --- a/docbrowser/macbuild/Makefile +++ b/docbrowser/macbuild/Makefile @@ -14,6 +14,7 @@ browser_sources = \ $(srcdir)/ProgressPanel.cs \ $(srcdir)/GtkHtmlHtmlRender.cs \ $(srcdir)/macbuild/IgeMacIntegrationSharp/*.cs \ + $(srcdir)/macbuild/IgeMacMenuGlobal.cs \ $(srcdir)/macbuild/Framework/* browser_built_sources = Options.cs |