Commit 8a0af95
Update labels in background tab
Changed files (3)
modifiedlibbirdfont/BackgroundTools.valamodifiedlibbirdfont/Expander.valamodifiedlibbirdfont/LabelTool.vala
Diff
@@ -134,6 +134,7 @@ public class BackgroundTools : ToolCollection { parts.tool.remove (bpl); bpl.selection.parent_image.selections.remove (bpl.selection); MainWindow.get_toolbox ().update_expanders ();+ parts.clear_cache (); set_default_canvas (); Toolbox.redraw_tool_box (); GlyphCanvas.redraw ();@@ -168,6 +169,7 @@ public class BackgroundTools : ToolCollection { set_default_canvas (); ZoomTool.zoom_full_background_image ();+ MainWindow.get_toolbox ().update_expanders (); } public override Gee.ArrayList<Expander> get_expanders () {@@ -59,6 +59,10 @@ public class Expander : GLib.Object { tool = new Gee.ArrayList<Tool> (); } + public void clear_cache () {+ cached = null;+ }+ public void set_headline (string? h) { headline = h; }@@ -18,7 +18,16 @@ namespace BirdFont { public class LabelTool : Tool { - public string label { get; set; }+ public string label { + get {+ return label_text.text;+ }+ + set {+ label_text.set_text (value);+ }+ }+ public string number { get; set; } public bool has_counter { get; set; } public bool has_delete_button { get; set; }