Indicate selected font.

This commit is contained in:
Adrian Cochrane 2018-04-19 15:16:22 +12:00
parent 9b6e6d8b4d
commit 7546eefb75

View File

@ -99,9 +99,11 @@ public class WriteAs.MainWindow : Gtk.ApplicationWindow {
fonts.popup.show_all();
}
private unowned SList<Gtk.RadioMenuItem>? font_options = null;
private void build_fontoption(Gtk.Menu menu,
string label, string fontstyle, string families) {
var option = new Gtk.MenuItem.with_label(label);
var option = new Gtk.RadioMenuItem.with_label(font_options, label);
font_options = option.get_group();
option.activate.connect(() => {
this.font = families;
this.fontstyle = fontstyle;