Clone in a terminal:
Commit ce7e016
Johan Mattsson - 2015-06-26T16:13:06+00:00
ce7e016a6e348f771e84d45592a00d32c46cdc6fjohan.mattsson.m@gmail.com

Fix home key in text area

Changed files (3)

Diff

diff --git a/libbirdfont/Renderer/TextArea.vala b/libbirdfont/Renderer/TextArea.valaindex 0b7fd6a..8eabcf8 100644--- a/libbirdfont/Renderer/TextArea.vala+++ b/libbirdfont/Renderer/TextArea.vala@@ -653,10 +653,9 @@ public class TextArea : Widget { 	}  	public void move_carret_to_beginning_of_line () {-		carret = get_carret_at (0, carret.desired_y, false);	+		carret = get_carret_at (widget_x, carret.desired_y, false);	 	} 	-	 	public void move_carret_previous_row () { 		double nr = -font_size; 		@@ -780,7 +779,9 @@ public class TextArea : Widget { 		return sb.str; 	} 	-	Carret get_carret_at (double click_x, double click_y, bool check_boundaries = true) {+	Carret get_carret_at (double click_x, double click_y, +		bool check_boundaries = true) {+			 		int i = 0; 		double tx, ty; 		double p;@@ -800,13 +801,14 @@ public class TextArea : Widget {  				if (paragraph.start_y + widget_y - font_size <= click_y <= paragraph.end_y + widget_y + font_size) {  					foreach (Text next_word in paragraph.words) {-						double tt_click = click_y - widget_y - padding + font_size; //  - next_word.get_baseline_to_bottom (); //- font_size + next_word.get_baseline_to_bottom ();+						double tt_click = click_y - widget_y - padding + font_size;  						w = next_word.text;+						 						if (next_word.widget_y <= tt_click <= next_word.widget_y + font_size) { 							 							p = next_word.get_sidebearing_extent ();-+								 							if ((next_word.widget_y <= tt_click <= next_word.widget_y + font_size) 								&& (next_word.widget_x + widget_x <= click_x <= next_word.widget_x + widget_x + padding + next_word.get_sidebearing_extent ())) { 														diff --git a/scripts/complete_translations.py b/scripts/complete_translations.pyindex f6c99f0..0a9c11f 100755--- a/scripts/complete_translations.py+++ b/scripts/complete_translations.py@@ -1,4 +1,4 @@-#!/usr/bin/python+#!/usr/bin/python3 """ Copyright (C) 2015 Johan Mattsson License: LGPLdiff --git a/scripts/release.sh b/scripts/release.shindex 17095da..47dc219 100755--- a/scripts/release.sh+++ b/scripts/release.sh@@ -45,7 +45,7 @@ rm -rf birdfont-$version/.git rm -rf birdfont-$version/.gitignore  cd birdfont-$version-./scripts/complete_translations.py -t 93 -i+python3 ./scripts/complete_translations.py -t 93 -i cd ..  tar -cf birdfont-$version.tar birdfont-$version

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112