Re: Discovering TextAdept

From: mitchell <mforal.n....at.gmail.com>
Date: Sun, 14 Mar 2010 13:52:28 -0700 (PDT)

Hi Robert,

> Could it be that some were referring to the position of the text
> within the "view" not the entire Textadept window on the desktop ?
> Even if not, this is something that occasionally happens: When I leave
> Textadept with the cursor at the end of a line of ~80 characters the
> view's content is scrolled, so that the end of the line is centered.
> buffer.x_offset is 20 (minimally scrolled) when I close Textadept, 396
> when I reopen.
> Where is this scroll position calculated?

I recall questions about window placement, not view scroll placement.
I do not know how scroll position is calculated.

Mitchell

>
> - Robert
>
> On Mar 13, 5:07 pm, mitchell <mforal.n....at.gmail.com> wrote:
>
> > Hi Samwyn,
>
> > > It seems to be implementable using gtk_window_move() and
> > > gtk_window_get_position(), and I think it should be, because on
> > > Windows, Maximizing window, Quitting, and Restarting TA sets the
> > > window partly out of the screen.
>
> > Right. Sorry for my vagueness. I chose not to implement this; that is
> > why I said "there is no way to set position". The problem you describe
> > is one we've encountered before. There was a suggestion to detect if
> > the window is maximized on close and save to session, but I don't want
> > to add the complexity to the code. The same goes for position (also, I
> > do believe the window manager should handle the window position, not
> > the application).
>
> > Mitchell
Received on Sun 14 Mar 2010 - 16:52:28 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:40:09 EST