Skip to content

Commit

Permalink
fix font selection, resolves mjun#13
Browse files Browse the repository at this point in the history
  • Loading branch information
kuthulux committed Apr 21, 2020
1 parent 8b92c86 commit 0c9a3bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gnome_connection_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def show_font_dialog(parent, title, button):

if parent.dlgFont == None:
parent.dlgFont = Gtk.FontSelectionDialog(title)
fontsel = parent.dlgFont.fontsel
fontsel = parent.dlgFont.get_font_selection()
fontsel.set_font_name(button.selected_font.to_string())

response = parent.dlgFont.run()
Expand Down Expand Up @@ -2789,6 +2789,7 @@ def new(self):
conf.FONT = 'monospace'
else:
self.chkDefaultFont.set_active(False)
self.btnFont.set_sensitive(not self.chkDefaultFont.get_active())
self.btnFont.selected_font = Pango.FontDescription(conf.FONT)
self.btnFont.set_label(self.btnFont.selected_font.to_string())
self.btnFont.get_child().modify_font(self.btnFont.selected_font)
Expand Down

0 comments on commit 0c9a3bf

Please sign in to comment.