Re: adding elastic tabstops to a widget

2008-08-20 Thread Nick Gravgaard
On Wed, 20 Aug 2008 11:30:56 -0400, Havoc Pennington [EMAIL PROTECTED] said: Previous thread on this for reference spans three months: http://mail.gnome.org/archives/gtk-devel-list/2007-July/msg00046.html http://mail.gnome.org/archives/gtk-devel-list/2007-August/msg00086.html

adding elastic tabstops to a widget

2008-08-19 Thread Nick Gravgaard
Hi all, I'm trying to make a proper GTK text editing widget that supports elastic tabstops [1] with a view to being able to use it in the near future in a PyGTK project (a programmer's text editor), and perhaps one day getting it added to GtkTextView or GtkSourceView. I have something pretty

Re: getting a pango tabarray for a specific line of text

2007-11-21 Thread Nick Gravgaard
On 21/11/2007, Behdad Esfahbod [EMAIL PROTECTED] wrote: On Wed, 2007-11-21 at 01:32 +0100, Nick Gravgaard wrote: Hi all, My application has non-uniform tabs of different sizes on different lines. Does anyone know how I should go about getting a pango tabarray for a specific line of text

getting a pango tabarray for a specific line of text

2007-11-20 Thread Nick Gravgaard
Hi all, My application has non-uniform tabs of different sizes on different lines. Does anyone know how I should go about getting a pango tabarray for a specific line of text in a textbuffer? Thanks in advance, Nick ___ gtk-app-devel-list mailing list

Re: elastic tabstops implemented for GTK

2007-09-24 Thread Nick Gravgaard
On 24/09/2007, Andrew Cowie [EMAIL PROTECTED] wrote: On Wed, 2007-09-19 at 08:14 +0200, Nick Gravgaard wrote: http://nickgravgaard.com/elastictabstops/#gedit Nick, does convert files that use spaces for alignment mean something along the lines of when reading a file

Re: elastic tabstops implemented for GTK

2007-09-19 Thread Nick Gravgaard
Hi Alex, everyone On 29/08/2007, Alex Jones [EMAIL PROTECTED] wrote: Hi again, Nick On Fri, 2007-07-13 at 10:46 +0200, Nick Gravgaard wrote: Thanks Alex, The proportional font stuff is really just a nice side effect - this idea has all sorts of nice implications. Off the top of my head

Re: elastic tabstops implemented for GTK

2007-09-19 Thread Nick Gravgaard
On 19/09/2007, Alex Jones [EMAIL PROTECTED] wrote: On Wed, 2007-09-19 at 08:14 +0200, Nick Gravgaard wrote: I thought I'd drop you a mail to tell you that I've turned the gedit patch into a proper plugin and made the following fixes: * Other chars than just \n can now terminate paragraphs

distance in pixels between 2 GtkTextIters

2007-09-05 Thread Nick Gravgaard
Hi, I'm trying to figure out how to get the distance in pixels between 2 GtkTextIters. At the moment I'm using gtk_text_iter_get_slice() to get a char pointer, and then using gtk_widget_create_pango_layout() and getting the width from that using pango_layout_get_pixel_size(). The problem with

Re: elastic tabstops implemented for GTK

2007-08-30 Thread Nick Gravgaard
On 30/08/2007, Kalle Vahlman [EMAIL PROTECTED] wrote: 2007/8/29, Nick Gravgaard [EMAIL PROTECTED]: [snip] But wouldn't it be nice to have the choice over how big your indentation is without forcing it on anyone else? OTOH you are forcing anyone wishing to look at your code to have

Re: elastic tabstops implemented for GTK

2007-08-29 Thread Nick Gravgaard
On 29/08/2007, Gustavo J. A. M. Carneiro [EMAIL PROTECTED] wrote: On Qua, 2007-08-29 at 07:42 +0200, Nick Gravgaard wrote: On 29/08/2007, Alex Jones [EMAIL PROTECTED] wrote: Hi again, Nick On Fri, 2007-07-13 at 10:46 +0200, Nick Gravgaard wrote: Thanks Alex

Re: elastic tabstops implemented for GTK

2007-08-29 Thread Nick Gravgaard
On 29/08/2007, Alex Jones [EMAIL PROTECTED] wrote: On Wed, 2007-08-29 at 12:06 +0100, Gustavo J. A. M. Carneiro wrote: And how will this look e.g. to Python, which generally doesn't even like tabs? Variable width tabs will likely cause havoc in Python programs... As Nick said, Python is

Re: elastic tabstops implemented for GTK

2007-08-29 Thread Nick Gravgaard
On 29/08/2007, David Nečas (Yeti) [EMAIL PROTECTED] wrote: On Wed, Aug 29, 2007 at 01:38:36PM +0200, Nick Gravgaard wrote: The problem is that indenting is already broken regardless of whether you use tabs or spaces. Tabs are broken because if you don't get the size right things won't

Re: elastic tabstops implemented for GTK

2007-08-29 Thread Nick Gravgaard
On 29/08/2007, David Nečas (Yeti) [EMAIL PROTECTED] wrote: Alex Jones wrote: I really can't wait to get this functionality, it finally puts an end to all of the nonsense over how many spaces there should be in a tab! The option to avoid tabs has been here since ever. Did it put an end to

Re: elastic tabstops implemented for GTK

2007-08-28 Thread Nick Gravgaard
On 29/08/2007, Alex Jones [EMAIL PROTECTED] wrote: Hi again, Nick On Fri, 2007-07-13 at 10:46 +0200, Nick Gravgaard wrote: Thanks Alex, The proportional font stuff is really just a nice side effect - this idea has all sorts of nice implications. Off the top of my head, imagine

Re: elastic tabstops implemented for GTK

2007-07-13 Thread Nick Gravgaard
, Alex Jones [EMAIL PROTECTED] wrote: You are truly a legend. I'm all for making things easier for those who prefer to use proportional fonts. I love unicode! ℃… On Thu, 2007-07-12 at 23:39 +0200, Nick Gravgaard wrote: Hi everyone, I thought some of you might be interested in some work I did

elastic tabstops implemented for GTK

2007-07-12 Thread Nick Gravgaard
Hi everyone, I thought some of you might be interested in some work I did recently. I came up with an idea I call elastic tabstops which I think goes some way towards solving the problems we programmers have with indenting and aligning code, and I've implemented this in GTK. At the moment this

Re: advice on implementing elastic tabstops for GTK+ 2.x?

2006-10-18 Thread Nick Gravgaard
On 15/10/06, Owen Taylor [EMAIL PROTECTED] wrote: On Sun, 2006-10-15 at 18:07 +0200, Nick Gravgaard wrote: Hi all, I would like to implement an idea I call elastic tabstops (see nickgravgaard.com/elastictabstops/) for GTK+ 2.x. Could someone advise me on whether support for this should