From 5066561558a5ad44fc540148c2216008b1b54dc7 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Sun, 30 Jun 2013 07:56:56 +0000 Subject: [PATCH] GTK 3.9 removes unicode-menu svn: r22627 --- 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