Remove deprecated show-unicode-menu setting

This commit is contained in:
Nick Hall 2015-05-21 21:15:03 +01:00
parent 75009f0fe0
commit 56d83c1c5c

View File

@ -202,15 +202,6 @@ class StyledTextEditor(Gtk.TextView):
self._connect_signals()
# 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 wants to deprecate show-unicode-menu, this prepares for this
self.show_unicode = False
# variable to not copy to clipboard on double/triple click
self.selclick = False
@ -247,19 +238,6 @@ class StyledTextEditor(Gtk.TextView):
window.set_cursor(REGULAR_CURSOR)
self.url_match = None
def on_unrealize(self, widget):
"""
Signal handler.
Set the default Gtk settings back before leaving.
"""
try:
settings = Gtk.Settings.get_default()
settings.set_property('gtk-show-unicode-menu', self.show_unicode)
except:
#GTK wants to deprecate show-unicode-menu, this prepares for this
pass
def on_key_press_event(self, widget, event):
"""Signal handler.
@ -461,7 +439,6 @@ class StyledTextEditor(Gtk.TextView):
self.connect('button-press-event', self.on_button_press_event)
self.connect('button-release-event', self.on_button_release_event)
self.connect('populate-popup', self.on_populate_popup)
self.connect('unrealize', self.on_unrealize)
def _create_toolbar(self):
"""