diff options
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-06-12 21:21:23 +0000 |
|---|---|---|
| committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-06-12 21:37:05 +0000 |
| commit | 216266f2ad3b8ff5d5afd3e1d0dc3e20308e01d6 (patch) | |
| tree | 848a75a1cdf49364e900dcfc0fd3109009adedc0 /src/widgets/ink-comboboxentry-action.cpp | |
| parent | Make ToolBase::cursor use gdkmm and smart pointers. (diff) | |
| download | inkscape-216266f2ad3b8ff5d5afd3e1d0dc3e20308e01d6.tar.gz inkscape-216266f2ad3b8ff5d5afd3e1d0dc3e20308e01d6.zip | |
Replace all deprecated gdk_keymap_get_default() with Gdk::Display::get_default()->get_keymap().
Diffstat (limited to 'src/widgets/ink-comboboxentry-action.cpp')
| -rw-r--r-- | src/widgets/ink-comboboxentry-action.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/widgets/ink-comboboxentry-action.cpp b/src/widgets/ink-comboboxentry-action.cpp index 2fecb06a4..133ae7878 100644 --- a/src/widgets/ink-comboboxentry-action.cpp +++ b/src/widgets/ink-comboboxentry-action.cpp @@ -29,6 +29,7 @@ #include <gtk/gtk.h> #include <gdk/gdkkeysyms.h> +#include <gdkmm/display.h> #include "widgets/ink-comboboxentry-action.h" #include "ui/icon-names.h" @@ -921,7 +922,7 @@ gboolean keypress_cb( GtkWidget * /*widget*/, GdkEventKey *event, gpointer data gboolean wasConsumed = FALSE; /* default to report event not consumed */ guint key = 0; Ink_ComboBoxEntry_Action* action = INK_COMBOBOXENTRY_ACTION( data ); - gdk_keymap_translate_keyboard_state( gdk_keymap_get_for_display( gdk_display_get_default() ), + gdk_keymap_translate_keyboard_state( Gdk::Display::get_default()->get_keymap(), event->hardware_keycode, (GdkModifierType)event->state, 0, &key, 0, 0, 0 ); |
