Fix deprecation warning

This commit is contained in:
Philipp Hörist 2018-08-18 00:10:10 +02:00
parent 3392f663de
commit 7392883607
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
A base class containing a banner, ConversationTextview, MessageTextView
"""
keymap = Gdk.Keymap.get_default()
keymap = Gdk.Keymap.get_for_display(Gdk.Display.get_default())
try:
keycode_c = keymap.get_entries_for_keyval(Gdk.KEY_c)[1][0].keycode
except TypeError: