Hi,
Attached is a small patch that fixes one of my favorite :-) annoyances: when you select "Go to line" from the search menu (or hit ctrl+l), the line number in the dialog window is now selected. So you can type in the line number you want without having to delete your current line number first.
While I was at it, I also limited the maximum line number for that dialog's spinner to the number of lines in the file, instead of the rather arbitrary 10 million.
On Fri, 27 Mar 2009 15:47:10 +0100, Bert wrote:
Hi,
Attached is a small patch that fixes one of my favorite :-) annoyances: when you select "Go to line" from the search menu (or hit ctrl+l), the line number in the dialog window is now selected. So you can type in the line number you want without having to delete your current line number first.
It's also selected without your patch, at least here.
While I was at it, I also limited the maximum line number for that dialog's spinner to the number of lines in the file, instead of the rather arbitrary 10 million.
This is ok though not strictly necessary I'd say.
Regards, Enrico
On Fri, 2009-03-27 at 15:54 +0100, Enrico Tröger wrote:
On Fri, 27 Mar 2009 15:47:10 +0100, Bert wrote:
Hi,
Attached is a small patch that fixes one of my favorite :-) annoyances: when you select "Go to line" from the search menu (or hit ctrl+l), the line number in the dialog window is now selected. So you can type in the line number you want without having to delete your current line number first.
It's also selected without your patch, at least here.
That's odd... definitely not selected here. Maybe this is something that was fixed in newer versions of GTK+? Which version of GTK+ do you have? Mine is 2.14.4 (standard on the latest ubuntu).
While I was at it, I also limited the maximum line number for that dialog's spinner to the number of lines in the file, instead of the rather arbitrary 10 million.
This is ok though not strictly necessary I'd say.
Yes :-)
On Fri, 27 Mar 2009 16:03:59 +0100, Bert wrote:
On Fri, 2009-03-27 at 15:54 +0100, Enrico Tröger wrote:
On Fri, 27 Mar 2009 15:47:10 +0100, Bert wrote:
Hi,
Attached is a small patch that fixes one of my favorite :-) annoyances: when you select "Go to line" from the search menu (or hit ctrl+l), the line number in the dialog window is now selected. So you can type in the line number you want without having to delete your current line number first.
It's also selected without your patch, at least here.
That's odd... definitely not selected here. Maybe this is something that was fixed in newer versions of GTK+? Which version of GTK+ do you have? Mine is 2.14.4 (standard on the latest ubuntu).
See my User-Agent string :). It's GTK 2.16.0 but I'm pretty sure I had the same already with 2.14.x. Not that that single line to select the line number in the spinner would be the worst thing ever but out of curiosity it'd be nice to track the difference down.
Regards, Enrico
Enrico Tröger wrote:
That's odd... definitely not selected here. Maybe this is something that was fixed in newer versions of GTK+? Which version of GTK+ do you have? Mine is 2.14.4 (standard on the latest ubuntu).
See my User-Agent string :). It's GTK 2.16.0 but I'm pretty sure I had the same already with 2.14.x. Not that that single line to select the line number in the spinner would be the worst thing ever but out of curiosity it'd be nice to track the difference down.
libgtk2.0-bin 2.14.4-0ubuntu2
... Is what I have installed. The line number in the spinner control is selected by default for me. I built Geany SVN r3657 just this morning.
Well... it turned out to be a setting in my ~/.gtkrc-2.0, which had:
gtk-entry-select-on-focus = 0
Thanks Enrico and Jason for helping to work this out. I hereby withdraw the patch :-)