Fix deprecation warning
This commit is contained in:
parent
3392f663de
commit
7392883607
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue