GTK 3.9 removes unicode-menu
svn: r22627
This commit is contained in:
parent
094dec06e0
commit
5066561558
@ -205,8 +205,12 @@ class StyledTextEditor(Gtk.TextView):
|
|||||||
|
|
||||||
# we want to disable the unicode menu in the popup
|
# we want to disable the unicode menu in the popup
|
||||||
settings = Gtk.Settings.get_default()
|
settings = Gtk.Settings.get_default()
|
||||||
|
try:
|
||||||
self.show_unicode = settings.get_property('gtk-show-unicode-menu')
|
self.show_unicode = settings.get_property('gtk-show-unicode-menu')
|
||||||
settings.set_property('gtk-show-unicode-menu', False)
|
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
|
# variable to not copy to clipboard on double/triple click
|
||||||
self.selclick = False
|
self.selclick = False
|
||||||
|
Loading…
Reference in New Issue
Block a user