Date: Tue, 14 Sep 2004 15:20:40 +0200 From: Maxence Guesdon To: Olivier Andrieu Cc: lablgtk at kaba.or.jp Subject: Re: Missing functions in lablgtk2 Message-Id: <20040914152040.4f0d6a76 at tintin.inria.fr> In-Reply-To: <20040914.110455.71086831.oandrieu at nerim.net> References: <20040914084737.55f7720b at tintin.inria.fr> <20040914.093107.41631424.oandrieu@nerim.net> <20040914102536.23afe177@tintin.inria.fr> <20040914.110455.71086831.oandrieu@nerim.net> Organization: INRIA Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit > > A little too complicated, if there was only this solution, then > > the has_focus method would be required ;-) > > Sure :) I just wanted to point out that even if the high-level object > layer lacks something, it is sometimes accessible through the > lower-level layer. Ok :-) > > > > - GText.buffer#get_iter_insert > > > > > > would that be the same thing as > > > buffer#get_iter `INSERT > > > > That's what I do, but from the Gtk docs about gtk_text_buffer_get_insert : > > < > to calling gtk_text_buffer_get_mark() to get the mark named "insert", but > > very slightly more efficient, and involves less typing.>> > > Yeah, notice the "very slightly more efficient". Actually, if you look > at the GTK+ source code, you'll see there's a FIXME in there: right > now this function is exactly doing like #get_iter `INSERT, ie lookup > the mark by name. Ok. Let's stick with buffer#get_iter `INSERT then :-) Maxence