diff options
author | Therzok <teromario@yahoo.com> | 2013-11-05 19:08:41 +0400 |
---|---|---|
committer | Therzok <teromario@yahoo.com> | 2013-11-12 16:16:55 +0400 |
commit | ff079bacf7789afa724cebc98ae42a74c1821cbe (patch) | |
tree | c901210b558485e584640c07ca902579bbbc9b20 /main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor | |
parent | f29b8c48c4a8eb8be93dfb6dd6bd56d0c820381d (diff) |
[Cleanup] Try and streamline most DllImports by using shared lib names.
Diffstat (limited to 'main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor')
-rw-r--r-- | main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/GtkSpell.cs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/GtkSpell.cs b/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/GtkSpell.cs index 5f7cf1506c..7de857e001 100644 --- a/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/GtkSpell.cs +++ b/main/src/addins/MonoDevelop.Gettext/MonoDevelop.Gettext.Editor/GtkSpell.cs @@ -36,22 +36,23 @@ namespace MonoDevelop.Gettext.Editor // as GtkSpell sharp looks quite old and unmaintained, here is simple wrapper static class GtkSpell { + const string LIBGTKSPELL = "libgtkspell"; static bool isSupported; #region Native methods
- [DllImport ("libgtkspell", CallingConvention = CallingConvention.Cdecl)] + [DllImport (LIBGTKSPELL, CallingConvention = CallingConvention.Cdecl)] static extern IntPtr gtkspell_new_attach (IntPtr textView, string locale, IntPtr error);
- [DllImport ("libgtkspell", CallingConvention = CallingConvention.Cdecl)] + [DllImport (LIBGTKSPELL, CallingConvention = CallingConvention.Cdecl)] static extern void gtkspell_detach (IntPtr ptr);
- [DllImport ("libgtkspell", CallingConvention = CallingConvention.Cdecl)] + [DllImport (LIBGTKSPELL, CallingConvention = CallingConvention.Cdecl)] static extern void gtkspell_recheck_all (IntPtr ptr);
- [DllImport ("libgtkspell", CallingConvention = CallingConvention.Cdecl)] + [DllImport (LIBGTKSPELL, CallingConvention = CallingConvention.Cdecl)] static extern IntPtr gtkspell_get_from_text_view (IntPtr textView); -// [DllImport ("libgtkspell")] +// [DllImport (LIBGTKSPELL)] // static extern bool gtkspell_set_language (IntPtr spell, string lang, IntPtr error); #endregion |