Skip to content
Snippets Groups Projects
Commit c963fc5d authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Fix use of deprecated method

parent 766458f3
No related branches found
No related tags found
No related merge requests found
......@@ -838,7 +838,7 @@ class HtmlHandler(xml.sax.handler.ContentHandler):
class HtmlTextView(Gtk.TextView):
def __init__(self):
GObject.GObject.__init__(self)
Gtk.TextView.__init__(self)
self.set_wrap_mode(Gtk.WrapMode.CHAR)
self.set_editable(False)
self._changed_cursor = False
......@@ -1045,7 +1045,7 @@ class HtmlTextView(Gtk.TextView):
clipboard = self.get_clipboard(Gdk.SELECTION_CLIPBOARD)
selected = self.get_selected_text()
clipboard.set_text(selected, -1)
self.emit_stop_by_name('copy-clipboard')
GObject.signal_stop_emission_by_name(self, 'copy-clipboard')
def on_html_text_view_realized(self, unused_data):
self.get_buffer().remove_selection_clipboard(self.get_clipboard(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment