The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Partial copy and paste, needs more work.

These changes was commited to the Birdfont repository Wed, 05 Dec 2018 14:45:29 +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, 05 Dec 2018 14:45:29 +0000]

Updated Files

libbirdfont/ExportSettings.vala
libbirdfont/OtfLabel.vala
--- a/libbirdfont/ExportSettings.vala +++ b/libbirdfont/ExportSettings.vala @@ -204,8 +204,32 @@ public override string get_name () { return "Export Settings"; + } + + public void paste (string text) { + if (0 <= focus_index < focus_ring.size) { + Widget widget = focus_ring.get (focus_index); + + if (widget is TextArea) { + TextArea text_area = (TextArea) widget; + text_area.insert_text (text); + } + } + } + + public string get_copy_selection () { + if (0 <= focus_index < focus_ring.size) { + Widget widget = focus_ring.get (focus_index); + + if (widget is TextArea) { + TextArea text_area = (TextArea) widget; + return text_area.get_selected_text (); + } + } + + return ""; } } }
--- a/libbirdfont/OtfLabel.vala +++ b/libbirdfont/OtfLabel.vala @@ -41,7 +41,7 @@ otf_feature_activity (enabled, tag); } - /** @return translated string representation of a OTF feature tag. */ + /** @return translated string representation of an OTF feature tag. */ public static string get_string (string tag) { if (tag == "salt") { return t_("Stylistic Alternate") + " (salt)";