The Birdfont Source Code


All Repositories / birdfont.git / commit – 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
author Johan Mattsson <johan.mattsson.m@gmail.com>
Wed, 05 Dec 2018 14:45:29 +0000 (15:45 +0100)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Wed, 05 Dec 2018 14:45:29 +0000 (15:45 +0100)
commit bbb358cf698ead489e6d44bcf778d150ed78861c
tree 984ce87fff159375b4e31f9103f371106c7a5c8e
parent 1bc8c82a8886a0f29fc6ceb7a03459f2dbcbd24a
Partial copy and paste, needs more work.

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)";