Skip to content

Commit

Permalink
osx: Use Lucida Grande font for Application
Browse files Browse the repository at this point in the history
  • Loading branch information
yousseb committed Dec 16, 2018
1 parent f6ab10a commit db06065
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions meld/meldwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ def app_action(*args):
def osx_menu_setup(self, widget, event, callback_data=None):
if self.osx_ready == False:
import gi
from gi.repository import Pango
gi.require_version('GtkosxApplication', '1.0')
from gi.repository import GtkosxApplication as gtkosx_application
self.macapp = gtkosx_application.Application()
Expand All @@ -294,6 +295,7 @@ def osx_menu_setup(self, widget, event, callback_data=None):
self.macapp.insert_app_menu_item(Gtk.SeparatorMenuItem(), 3)
#self.macapp.ready()
NSApp.activateIgnoringOtherApps_(True)
self.widget.modify_font(Pango.FontDescription("Lucida Grande 10"))
self.osx_ready = True

def _on_recentmenu_map(self, recentmenu):
Expand Down

0 comments on commit db06065

Please sign in to comment.