[10572] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Re: ANNOUNCE: GtkConsole 0.0.1

daemon@ATHENA.MIT.EDU (nuke@bayside.net)
Tue Dec 1 15:01:13 1998

From: nuke@bayside.net
Date: Tue, 1 Dec 1998 22:45:59 -0500 (EST)
To: GTK+ list <gtk-list@redhat.com>
In-Reply-To: <19981201091426.A1538@stat.auckland.ac.nz>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

On Tue, 1 Dec 1998, Lyndon Drake wrote:

> Hi,
> 
> I'm working on a GTK+ frontend for R, which is an interpreted stats
> language.  Since I couldn't find anything suitable to act as a
> console for R, I have written GtkConsole.
> 
> This is my first real GTK+ programming experience, so I would very
> much appreciate any comments and suggestions.
> 
> GtkConsole is derived from GtkText, and is designed to act as a
> front end for a program that needs to write output and read user
> input.  GtkConsole has functions for writing text from a buffer to
> the console, enabling input from the console, and reading the
> input.  It can also emit signals when characters or lines are
> available for reading (sort of like a select).
> 
> Thanks to all the people on gtk-list and gtk-app-devel-list for
> their help with various questions.
> 
> Lyndon
> 
> PS: How can I find the start and end of the selected text in a
> GtkText widget?  I need to prevent deletions of text outside the
> input area in GtkConsole.

GTK_TEXT (widget).editable.selection_start_pos
and
GTK_TEXT (widget).editable.selection_end_pos
 _        _  __     __             _ _                                  _
|        / |/ /_ __/ /_____         |       Nuke Skyjumper               |
|       /    / // /  '_/ -_)        |         "Master of the Farce"      |
|_     /_/|_/\_,_/_/\_\\__/        _|_           nuke@bayside.net       _|

-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post