GTK 3.9 removes unicode-menu

svn: r22627
This commit is contained in:
Benny Malengier 2013-06-30 07:56:56 +00:00
parent 094dec06e0
commit 5066561558

View File

@ -205,8 +205,12 @@ class StyledTextEditor(Gtk.TextView):
# we want to disable the unicode menu in the popup
settings = Gtk.Settings.get_default()
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