The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

More log messages

These changes was commited to the Birdfont repository Wed, 15 Oct 2014 13:55:45 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Wed, 15 Oct 2014 13:55:45 +0000]

Updated Files

libbirdfont/BirdFont.vala
libbirdfont/ForesightTool.vala
libbirdfont/PenTool.vala
--- a/libbirdfont/BirdFont.vala +++ b/libbirdfont/BirdFont.vala @@ -625,7 +625,7 @@ ((!)BirdFont.logstream).put_string ((!) log.get_path ()); ((!)BirdFont.logstream).put_string ("\n"); - warning ("Logging to " + (!) log.get_path ()); + warning ("Logging to " + (!) log.get_path ()); } catch (GLib.Error e) { warning (e.message); warning ((!) log.get_path ()); @@ -635,6 +635,9 @@ Log.set_handler (null, levels, log_warning); BirdFont.logging = true; + + printd (@"Program version: $(VERSION)\n"); + printd (@"built on $(BUILD_TIMESTAMP)\n"); } internal static void log_warning (string? log_domain, LogLevelFlags log_levels, string message) { @@ -705,9 +708,11 @@ if (!f.has_suffix (s)) { f += s; } + + printd (@"File: Directory: $f Name: $n)\n"); return File.new_for_path (f + n); } }
--- a/libbirdfont/ForesightTool.vala +++ b/libbirdfont/ForesightTool.vala @@ -172,27 +172,22 @@ PenTool.selected_points.clear (); PenTool.selected_handle = new EditPointHandle.empty (); - p.release_action (p, 3, x, y); - //p.press_action (p, 1, x, y); - - //return_if_fail (PenTool.selected_points.size != 0); - //last = PenTool.selected_points.get (PenTool.selected_points.size - 1); - - //p.release_action (p, 1, x, y); + p.release_action (p, 3, x, y); last = p.new_point_action (x, y); - p.move_selected = false; - + p.press_action (p, 3, x, y); PenTool.selected_points.clear (); PenTool.selected_points.add (last); PenTool.selected_point = last.point; PenTool.active_edit_point = null; + PenTool.show_selection_box = false; PenTool.move_selected_handle = false; + PenTool.move_selected = true; } } }
--- a/libbirdfont/PenTool.vala +++ b/libbirdfont/PenTool.vala @@ -49,7 +49,7 @@ private static double last_point_x = 0; private static double last_point_y = 0; - private static bool show_selection_box = false; + public static bool show_selection_box = false; private static double selection_box_x = 0; private static double selection_box_y = 0; private static double selection_box_last_x = 0;