Commit 73928836 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Fix deprecation warning

parent 3392f663
...@@ -75,7 +75,7 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools): ...@@ -75,7 +75,7 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
A base class containing a banner, ConversationTextview, MessageTextView A base class containing a banner, ConversationTextview, MessageTextView
""" """
keymap = Gdk.Keymap.get_default() keymap = Gdk.Keymap.get_for_display(Gdk.Display.get_default())
try: try:
keycode_c = keymap.get_entries_for_keyval(Gdk.KEY_c)[1][0].keycode keycode_c = keymap.get_entries_for_keyval(Gdk.KEY_c)[1][0].keycode
except TypeError: except TypeError:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment