From f892473c24c4c0f66860c2854ad0c1047ed15eae Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Sun, 30 Jun 2013 07:54:21 +0000 Subject: [PATCH] GTK 3.9 removes unicode-menu svn: r22626 --- gramps/gui/widgets/styledtexteditor.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gramps/gui/widgets/styledtexteditor.py b/gramps/gui/widgets/styledtexteditor.py index 0b398fe54..0bc4d8995 100644 --- a/gramps/gui/widgets/styledtexteditor.py +++ b/gramps/gui/widgets/styledtexteditor.py @@ -205,8 +205,12 @@ class StyledTextEditor(Gtk.TextView): # we want to disable the unicode menu in the popup settings = Gtk.Settings.get_default() - self.show_unicode = settings.get_property('gtk-show-unicode-menu') - settings.set_property('gtk-show-unicode-menu', False) + try: + self.show_unicode = settings.get_property('gtk-show-unicode-menu') + settings.set_property('gtk-show-unicode-menu', False) + except: + #GTK 3.9+ no longer has show-unicode-menu + pass # variable to not copy to clipboard on double/triple click self.selclick = False