GTK 3.9 removes unicode-menu

svn: r22626
This commit is contained in:
Benny Malengier 2013-06-30 07:54:21 +00:00
parent 3231d71fd1
commit f892473c24

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()
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