Commit e65812f
OTF offer
Changed files (2)
Diff
@@ -97,6 +97,23 @@ public class ExportSettings : TableLayout { widgets.add (new Text (t_("Formats"), label_size, label_margin)); + CheckBox otf = new CheckBox ("OTF", label_size);++ otf.updated.connect ((c) => {+ if (c) {+ MessageDialog dialog;+ dialog = MainWindow.show_message (t_("You need the plus version to export OTF fonts."));+ MainWindow.show_dialog (dialog);+ + otf.checked = false;+ }+ });++ otf.checked = false;+ + widgets.add (otf);+ focus_ring.add (otf);+ ttf = new CheckBox ("TTF", label_size); ttf.updated.connect ((c) => { Font f = BirdFont.get_current_font ();@@ -112,7 +112,7 @@ public class MainWindow : GLib.Object { } } - public static void show_message (string text) {+ public static MessageDialog show_message (string text) { Tab t = MainWindow.get_tab_bar ().get_selected_tab (); string tab_name = t.get_display ().get_name (); @@ -121,7 +121,9 @@ public class MainWindow : GLib.Object { } MessageDialog md = new MessageDialog (text); - show_dialog (md); + show_dialog (md);+ + return md; } public static void hide_dialog () {