From a1477696b5f7296ed7b5552dcf1ab15dee90475d Mon Sep 17 00:00:00 2001 From: ppedrot Date: Tue, 26 Jun 2012 22:25:14 +0000 Subject: Added the show_margin_right option to CoqIDE git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15496 85f007b7-540e-0410-9357-904b9bb8a0f7 --- ide/wg_ScriptView.ml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'ide/wg_ScriptView.ml') diff --git a/ide/wg_ScriptView.ml b/ide/wg_ScriptView.ml index 9bcdc7a3b..03df1ac17 100644 --- a/ide/wg_ScriptView.ml +++ b/ide/wg_ScriptView.ml @@ -225,6 +225,35 @@ object (self) method private may_auto_complete () = if auto_complete && is_auto_completing then self#do_auto_complete () + (* HACK: missing gtksourceview features *) + method right_margin_position = + let prop = { + Gobject.name = "right-margin-position"; + conv = Gobject.Data.int; + } in + Gobject.get prop obj + + method set_right_margin_position pos = + let prop = { + Gobject.name = "right-margin-position"; + conv = Gobject.Data.int; + } in + Gobject.set prop obj pos + + method show_right_margin = + let prop = { + Gobject.name = "show-right-margin"; + conv = Gobject.Data.boolean; + } in + Gobject.get prop obj + + method set_show_right_margin show = + let prop = { + Gobject.name = "show-right-margin"; + conv = Gobject.Data.boolean; + } in + Gobject.set prop obj show + initializer (* Install undo managing *) ignore (self#buffer#connect#insert_text ~callback:self#handle_insert); -- cgit v1.2.3