Delivered-To: garrigue at math.nagoya-u.ac.jp Authentication-Results: mailhost.math.nagoya-u.ac.jp sender=lablgtk-bounces at yquem.inria.fr; domainkey=neutral (no query protocol specified; no policy for yquem.inria.fr) Delivered-To: lablgtk at yquem.inria.fr DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=11Ygq/+L0Rd1WvEcI8yEl91tMd/AmvTWuCkspyyGd44=; b=NB9dg/7cPafYn1IR13ZwQJVrXo/k0Nu/YXtkNGeoAzTvVk7hUSlidMkg6vhyX7NLSJ 4wqIa1p6pCFm2/CxLnv6m0AMobvJx1RgKBiwFQLDjoL5+QI6GcTii0o/psjtgSuGwYO5 BUBtX4MFQFVQdZalDPuuIBOhLCqtSwgqCT1Xk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=ai2ycYXPNQ6d0O+mygXl1RxA6zZe5qCXD2pwB33GgFU7j3E9vsMpDPLdGiM2KC/bob 0v3PnBfxWJbyBuA8XdbUzXQfNuuOQdzc4bjcwOuimWDJXgb4fiJQ/1WE8dYLp36AnD82 QyI5jPt7uxKIS6BZDdxsKZjr0XBGLdgNF9jOc= Message-ID: Date: Tue, 14 Oct 2008 03:22:12 -0400 From: "Jacques Le Normand" To: lablgtk at yquem.inria.fr MIME-Version: 1.0 Subject: [Lablgtk] adding an entry to a view Content-Type: multipart/mixed; boundary="===============1976822028==" Mime-version: 1.0 --===============1976822028== Content-Type: multipart/alternative; boundary="----=_Part_1181_25494212.1223968932397" ------=_Part_1181_25494212.1223968932397 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello lablgtk, I'm adding an entry to a view, the result is three lines of uneven height how do I make it so that every line of my view has the same height? here's the code: let _ = let source_window = GWindow.window () in let view = GText.view ~packing:source_window#add () in let t = view#buffer in t#insert "hello \nhello "; view#add_child_at_anchor (GEdit.entry () :> GObj.widget) (t#create_child_anchor (t#end_iter)); t#insert "oh no\nhello"; source_window#show (); GMain.Main.main () ------=_Part_1181_25494212.1223968932397 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hello lablgtk,
I'm adding an entry to a view, the result is three lines of uneven height
how do I make it so that every line of my view has the same height?
here's the code:

let _ =
  let source_window = GWindow.window () in
  let view = GText.view  ~packing:source_window#add  () in
  let t = view#buffer in
    t#insert "hello \nhello ";
    view#add_child_at_anchor (GEdit.entry () :> GObj.widget) (t#create_child_anchor (t#end_iter));     
    t#insert "oh no\nhello";
    source_window#show ();
    GMain.Main.main ()

------=_Part_1181_25494212.1223968932397-- --===============1976822028== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Lablgtk mailing list Lablgtk@yquem.inria.fr http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk --===============1976822028==--